aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/smtp
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/smtp
parente77cd05ac0cfc0627fbb87902ac0e383ad50ab57 (diff)
Fixed crash when a method is scheduled twice to perform after delay. Fixed #149.
Diffstat (limited to 'src/async/smtp')
-rw-r--r--src/async/smtp/MCSMTPAsyncSession.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/async/smtp/MCSMTPAsyncSession.cc b/src/async/smtp/MCSMTPAsyncSession.cc
index 73bc2a54..723c0330 100644
--- a/src/async/smtp/MCSMTPAsyncSession.cc
+++ b/src/async/smtp/MCSMTPAsyncSession.cc
@@ -157,6 +157,7 @@ void SMTPAsyncSession::tryAutomaticDisconnect()
return;
}
+ cancelDelayedPerformMethod((Object::Method) &SMTPAsyncSession::tryAutomaticDisconnectAfterDelay, NULL);
performMethodAfterDelay((Object::Method) &SMTPAsyncSession::tryAutomaticDisconnectAfterDelay, NULL, 30);
}