aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/imap
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-05-18 19:01:45 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-05-18 19:01:45 -0700
commitd7f6c8df7043982f65070f200e1780a1bf0bdb1a (patch)
tree75967b982e589b0bf5b10a311d0ad9b36ad77663 /src/async/imap
parentabe79abc505fcb1ff1e5907b76a2bd9960930c00 (diff)
Fixed build for Linux again
Diffstat (limited to 'src/async/imap')
-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 942f9f50..2f685ca3 100755
--- a/src/async/imap/MCIMAPAsyncConnection.cc
+++ b/src/async/imap/MCIMAPAsyncConnection.cc
@@ -110,7 +110,11 @@ IMAPAsyncConnection::IMAPAsyncConnection()
IMAPAsyncConnection::~IMAPAsyncConnection()
{
+#if __APPLE__
cancelDelayedPerformMethodOnDispatchQueue((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL, dispatchQueue());
+#else
+ cancelDelayedPerformMethod((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL);
+#endif
pthread_mutex_destroy(&mConnectionLoggerLock);
MC_SAFE_RELEASE(mInternalLogger);
MC_SAFE_RELEASE(mQueueCallback);
@@ -560,7 +564,11 @@ void IMAPAsyncConnection::cancelAllOperations()
void IMAPAsyncConnection::runOperation(IMAPOperation * operation)
{
if (mScheduledAutomaticDisconnect) {
+#if __APPLE__
cancelDelayedPerformMethodOnDispatchQueue((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL, dispatchQueue());
+#else
+ cancelDelayedPerformMethod((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL);
+#endif
mOwner->release();
mScheduledAutomaticDisconnect = false;
}