|
|
@ -1254,7 +1254,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|
|
|
EntityLog.log(
|
|
|
|
EntityLog.log(
|
|
|
|
ServiceSynchronize.this,
|
|
|
|
ServiceSynchronize.this,
|
|
|
|
folder.name + " " + Log.formatThrowable(ex, false));
|
|
|
|
folder.name + " " + Log.formatThrowable(ex, false));
|
|
|
|
state.error(new FolderClosedException(ifolder, "IDLE"));
|
|
|
|
state.error(new FolderClosedException(ifolder, "IDLE", new Exception(ex)));
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
Log.i(folder.name + " end idle");
|
|
|
|
Log.i(folder.name + " end idle");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1469,13 +1469,11 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|
|
|
" Tune interval=" + account.poll_interval +
|
|
|
|
" Tune interval=" + account.poll_interval +
|
|
|
|
" idle=" + idleTime + "/" + tune);
|
|
|
|
" idle=" + idleTime + "/" + tune);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (!state.isRecoverable()) {
|
|
|
|
if (!state.isRecoverable())
|
|
|
|
Throwable ex = state.getUnrecoverable();
|
|
|
|
throw new StoreClosedException(
|
|
|
|
if (ex instanceof Exception)
|
|
|
|
iservice.getStore(),
|
|
|
|
throw new StoreClosedException(iservice.getStore(), "Unrecoverable", (Exception) ex);
|
|
|
|
"Unrecoverable",
|
|
|
|
else
|
|
|
|
new Exception(state.getUnrecoverable()));
|
|
|
|
throw new StoreClosedException(iservice.getStore(), "Unrecoverable");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Sends store NOOP
|
|
|
|
// Sends store NOOP
|
|
|
|
EntityLog.log(ServiceSynchronize.this, account.name + " checking store");
|
|
|
|
EntityLog.log(ServiceSynchronize.this, account.name + " checking store");
|
|
|
|