aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/imap/MCIMAPAsyncConnection.cc
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-06-24 08:36:32 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-06-24 08:36:32 -0700
commit912e158e08cc45a2204977e4f8ebc58f07730c0b (patch)
tree143e2b7c4b672cb2890e71044966fa981fdc4b0f /src/async/imap/MCIMAPAsyncConnection.cc
parente77cd05ac0cfc0627fbb87902ac0e383ad50ab57 (diff)
Fixed crash when a method is scheduled twice to perform after delay. Fixed #149.
Diffstat (limited to 'src/async/imap/MCIMAPAsyncConnection.cc')
-rw-r--r--src/async/imap/MCIMAPAsyncConnection.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/async/imap/MCIMAPAsyncConnection.cc b/src/async/imap/MCIMAPAsyncConnection.cc
index ed40932c..2891d439 100644
--- a/src/async/imap/MCIMAPAsyncConnection.cc
+++ b/src/async/imap/MCIMAPAsyncConnection.cc
@@ -482,6 +482,7 @@ void IMAPAsyncConnection::tryAutomaticDisconnect()
return;
}
+ cancelDelayedPerformMethod((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL);
performMethodAfterDelay((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL, 30);
}