1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 02:39:23 +02:00

10 sec delay on SynchroniserService start

This commit is contained in:
Nikolay Pultsin 2014-07-28 05:15:45 +01:00
parent 00a3438dc3
commit c80c3aff9d

View file

@ -165,6 +165,10 @@ public class SynchroniserService extends Service implements IBookCollection.List
if (ourSynchronizationThread == null) { if (ourSynchronizationThread == null) {
ourSynchronizationThread = new Thread() { ourSynchronizationThread = new Thread() {
public void run() { public void run() {
try {
sleep(10000);
} catch (InterruptedException e) {
}
final long start = System.currentTimeMillis(); final long start = System.currentTimeMillis();
int count = 0; int count = 0;
final Map<SyncStatus,Integer> statusCounts = new HashMap<SyncStatus,Integer>(); final Map<SyncStatus,Integer> statusCounts = new HashMap<SyncStatus,Integer>();