aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/imap
diff options
context:
space:
mode:
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;
}