Fixed a synchronization bug

pull/14/head
Sam Bosley 13 years ago
parent 02d6d30d83
commit 7e1335adbc

@ -139,8 +139,8 @@ public final class ActFmSyncService {
new Thread(new Runnable() {
@Override
public void run() {
taskPushThreads.incrementAndGet();
waitUntilEmpty.close();
taskPushThreads.incrementAndGet();
// sleep so metadata associated with task is saved
try {
AndroidUtilities.sleepDeep(1000L);
@ -248,10 +248,8 @@ public final class ActFmSyncService {
}
public void waitUntilEmpty() {
while (taskPushThreads.get() > 0) {
waitUntilEmpty.block();
}
}
// --- data push methods

Loading…
Cancel
Save