Fixed a potential concurrency bug

pull/14/head
Sam Bosley 12 years ago
parent 97c3480732
commit cf97bb9393

@ -240,8 +240,10 @@ public class ActFmSyncThread {
};
private void incrementProgress() {
if (activity != null) {
activity.runOnUiThread(incrementProgressRunnable);
synchronized (progressBarLock) {
if (activity != null) {
activity.runOnUiThread(incrementProgressRunnable);
}
}
}

Loading…
Cancel
Save