|
|
@ -1204,6 +1204,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|
|
|
if (!iservice.getStore().isConnected())
|
|
|
|
if (!iservice.getStore().isConnected())
|
|
|
|
throw new StoreClosedException(iservice.getStore(), "NOOP");
|
|
|
|
throw new StoreClosedException(iservice.getStore(), "NOOP");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!ServiceSynchronize.this.getMainLooper().getThread().isAlive()) {
|
|
|
|
|
|
|
|
Log.e("App died");
|
|
|
|
|
|
|
|
state.stop();
|
|
|
|
|
|
|
|
throw new StoreClosedException(iservice.getStore(), "App died");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (sync)
|
|
|
|
if (sync)
|
|
|
|
for (EntityFolder folder : mapFolders.keySet())
|
|
|
|
for (EntityFolder folder : mapFolders.keySet())
|
|
|
|
if (folder.synchronize)
|
|
|
|
if (folder.synchronize)
|
|
|
|