Avoid incrementing field inside expression
This commit is contained in:
parent
f88a915a5d
commit
126a8766d6
1 changed files with 2 additions and 1 deletions
|
@ -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 +
|
||||
|
|
Loading…
Reference in a new issue