|
|
@ -427,12 +427,10 @@ public final class ActFmSyncService {
|
|
|
|
JsonHelper.taskFromJson(result, task, metadata);
|
|
|
|
JsonHelper.taskFromJson(result, task, metadata);
|
|
|
|
} catch (JSONException e) {
|
|
|
|
} catch (JSONException e) {
|
|
|
|
handleException("task-save-json", e);
|
|
|
|
handleException("task-save-json", e);
|
|
|
|
// Crittercism.logHandledException(e);
|
|
|
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
} catch (IOException e) {
|
|
|
|
if (notPermanentError(e))
|
|
|
|
if (notPermanentError(e))
|
|
|
|
addFailedPush(new FailedPush(PUSH_TYPE_TASK, task.getId()));
|
|
|
|
addFailedPush(new FailedPush(PUSH_TYPE_TASK, task.getId()));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
// Crittercism.logHandledException(e);
|
|
|
|
|
|
|
|
handleException("task-save-io", e);
|
|
|
|
handleException("task-save-io", e);
|
|
|
|
task.setValue(Task.LAST_SYNC, DateUtilities.now() + 1000L);
|
|
|
|
task.setValue(Task.LAST_SYNC, DateUtilities.now() + 1000L);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1093,10 +1091,8 @@ public final class ActFmSyncService {
|
|
|
|
handler.handleException("io-exception-list-" + model, e);
|
|
|
|
handler.handleException("io-exception-list-" + model, e);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
handleException("io-exception-list-" + model, e);
|
|
|
|
handleException("io-exception-list-" + model, e);
|
|
|
|
// Crittercism.logHandledException(e);
|
|
|
|
|
|
|
|
} catch (JSONException e) {
|
|
|
|
} catch (JSONException e) {
|
|
|
|
handleException("json: " + result.toString(), e);
|
|
|
|
handleException("json: " + result.toString(), e);
|
|
|
|
// Crittercism.logHandledException(e);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).start();
|
|
|
|
}).start();
|
|
|
|