| 282 | } |
| 283 | |
| 284 | void IMAPAsyncConnection::runOperation(IMAPOperation * operation) |
| 285 | { |
| 286 | if (mScheduledAutomaticDisconnect) { |
| 287 | #if __APPLE__ |
| 288 | cancelDelayedPerformMethodOnDispatchQueue((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL, dispatchQueue()); |
| 289 | #else |
| 290 | cancelDelayedPerformMethod((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL); |
| 291 | #endif |
| 292 | mOwner->release(); |
| 293 | mScheduledAutomaticDisconnect = false; |
| 294 | } |
| 295 | mQueue->addOperation(operation); |
| 296 | } |
| 297 | |
| 298 | void IMAPAsyncConnection::tryAutomaticDisconnect() |
| 299 | { |
no test coverage detected