1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +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) {
ourSynchronizationThread = new Thread() {
public void run() {
try {
sleep(10000);
} catch (InterruptedException e) {
}
final long start = System.currentTimeMillis();
int count = 0;
final Map<SyncStatus,Integer> statusCounts = new HashMap<SyncStatus,Integer>();