Skip to content

Commit

Permalink
imap-hibernate: fix input_pending check in client_unhibernate_cmp
Browse files Browse the repository at this point in the history
Check c2->input_pending instead of c1->input_pending when calculating
comparison value for c2.
  • Loading branch information
mrannanj authored and sirainen committed Aug 17, 2016
1 parent 43cce3e commit 28d1de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imap-hibernate/imap-client.c
Expand Up @@ -608,7 +608,7 @@ static int client_unhibernate_cmp(const void *p1, const void *p2)
IMAP_CLIENT_MOVE_BACK_WITH_INPUT_TIMEOUT_SECS :
IMAP_CLIENT_MOVE_BACK_WITHOUT_INPUT_TIMEOUT_SECS);
t2 = c2->move_back_start +
(c1->input_pending ?
(c2->input_pending ?
IMAP_CLIENT_MOVE_BACK_WITH_INPUT_TIMEOUT_SECS :
IMAP_CLIENT_MOVE_BACK_WITHOUT_INPUT_TIMEOUT_SECS);
if (t1 < t2)
Expand Down

0 comments on commit 28d1de5

Please sign in to comment.