Avoid incrementing field inside expression

This commit is contained in:
cketti 2016-02-24 11:08:34 +01:00
parent f88a915a5d
commit 126a8766d6

View file

@ -214,7 +214,8 @@ class ImapFolderPusher extends ImapFolder {
delayTime = MAX_DELAY_TIME;
}
if (++idleFailureCount > IDLE_FAILURE_COUNT_LIMIT) {
idleFailureCount++;
if (idleFailureCount > IDLE_FAILURE_COUNT_LIMIT) {
Log.e(LOG_TAG, "Disabling pusher for " + getLogId() + " after " + idleFailureCount +
" consecutive errors");
pushReceiver.pushError("Push disabled for " + getName() + " after " + idleFailureCount +