aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-05-18 18:53:09 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-05-18 18:53:09 -0700
commitabe79abc505fcb1ff1e5907b76a2bd9960930c00 (patch)
treecec45f51550d6d611199ae3ab5289d4c792f2528 /src
parent86e6f23a41bdfe5ebde3b882a18c11b8c065ca50 (diff)
Fixed build on Linux
Diffstat (limited to 'src')
-rwxr-xr-xsrc/async/imap/MCIMAPAsyncConnection.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/async/imap/MCIMAPAsyncConnection.cc b/src/async/imap/MCIMAPAsyncConnection.cc
index 04d3a93c..942f9f50 100755
--- a/src/async/imap/MCIMAPAsyncConnection.cc
+++ b/src/async/imap/MCIMAPAsyncConnection.cc
@@ -576,12 +576,20 @@ void IMAPAsyncConnection::tryAutomaticDisconnect()
bool scheduledAutomaticDisconnect = mScheduledAutomaticDisconnect;
if (scheduledAutomaticDisconnect) {
+#if __APPLE__
cancelDelayedPerformMethodOnDispatchQueue((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL, dispatchQueue());
+#else
+ cancelDelayedPerformMethod((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL);
+#endif
}
mOwner->retain();
mScheduledAutomaticDisconnect = true;
+#if __APPLE__
performMethodOnDispatchQueueAfterDelay((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL, dispatchQueue(), 30);
+#else
+ performMethodAfterDelay((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL, 30);
+#endif
if (scheduledAutomaticDisconnect) {
mOwner->release();