aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/async/imap/MCIMAPAsyncConnection.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/async/imap/MCIMAPAsyncConnection.cpp b/src/async/imap/MCIMAPAsyncConnection.cpp
index 4ae633ec..df514dd9 100644
--- a/src/async/imap/MCIMAPAsyncConnection.cpp
+++ b/src/async/imap/MCIMAPAsyncConnection.cpp
@@ -57,14 +57,18 @@ namespace mailcore {
virtual void queueStartRunning() {
mConnection->setQueueRunning(true);
- mConnection->owner()->operationRunningStateChanged();
+ if (mConnection->owner()) {
+ mConnection->owner()->operationRunningStateChanged();
+ }
mConnection->queueStartRunning();
}
virtual void queueStoppedRunning() {
mConnection->setQueueRunning(false);
mConnection->tryAutomaticDisconnect();
- mConnection->owner()->operationRunningStateChanged();
+ if (mConnection->owner()) {
+ mConnection->owner()->operationRunningStateChanged();
+ }
mConnection->queueStoppedRunning();
}