diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-05-18 19:01:45 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-05-18 19:01:45 -0700 |
commit | d7f6c8df7043982f65070f200e1780a1bf0bdb1a (patch) | |
tree | 75967b982e589b0bf5b10a311d0ad9b36ad77663 /src | |
parent | abe79abc505fcb1ff1e5907b76a2bd9960930c00 (diff) |
Fixed build for Linux again
Diffstat (limited to 'src')
-rwxr-xr-x | src/async/imap/MCIMAPAsyncConnection.cc | 8 |
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; } |