The solution was to set the delay on the sync result. After this delay the sync will be restarted.
try {
DO THE SYNCHRONIZATION
} catch (AuthenticationException e) {
Log.e(TAG, "AuthenticationException");
syncResult.stats.numAuthExceptions++;
syncResult.delayUntil = 180;
} catch (ParseException e) {
Log.e(TAG, "ParseException");
syncResult.stats.numParseExceptions++;
} catch (IOException e) {
Log.e(TAG, "IOException");
syncResult.stats.numIoExceptions++;
syncResult.delayUntil = 180;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…