Clear last error on sync success

pull/14/head
Sam Bosley 12 years ago
parent 7ad6d441b0
commit 6b0b387d6e

@ -374,8 +374,10 @@ public class ActFmSyncThread {
batchSize = Math.min(batchSize, messageBatch.size()) * 2; batchSize = Math.min(batchSize, messageBatch.size()) * 2;
if (recordSyncSuccess) if (recordSyncSuccess) {
actFmPreferenceService.setLastError(null, null);
actFmPreferenceService.recordSuccessfulSync(); actFmPreferenceService.recordSuccessfulSync();
}
} catch (IOException e) { } catch (IOException e) {
Log.e(ERROR_TAG, "IOException", e); Log.e(ERROR_TAG, "IOException", e);
batchSize = Math.max(batchSize / 2, 1); batchSize = Math.max(batchSize / 2, 1);

Loading…
Cancel
Save