diff options
| author | Don Sanders <don.sanders@nokia.com> | 2011-08-18 18:32:39 +1000 |
|---|---|---|
| committer | Don Sanders <don.sanders@nokia.com> | 2011-08-18 18:32:39 +1000 |
| commit | 00ed76f9f074549fdf6704d6dcceaa77fada82a2 (patch) | |
| tree | a1382d5474cecd47f2d95af8029ec0d687081502 | |
| parent | e398a7529fc02b52698276efc68e6a2cda8fa463 (diff) | |
Fix NB#276243 Email Sync fails when not synced for a day...
Fix: Email Sync fails when not synced for a day and shows connecting to
server always. Restarting device resolves the problem temporarily
From Morenkov.
IMAP service disables and then enables itself. This causes
initClientConnections() to be called in which _strategyExpiryTimer is connected
to the slot which shows the text mentioned above. No disconnects are found.
After this, there are 2 connects to _strategyExpiryTimer and its next
expiration causes double call of expireStrategy() slot. And so on... the next
expiration will cause 4 calls... etc. So, IMAP plugin resets itself
continuously.
| -rw-r--r-- | src/plugins/messageservices/imap/imapservice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/messageservices/imap/imapservice.cpp b/src/plugins/messageservices/imap/imapservice.cpp index 6552ceb0..d76de4ed 100644 --- a/src/plugins/messageservices/imap/imapservice.cpp +++ b/src/plugins/messageservices/imap/imapservice.cpp @@ -89,6 +89,7 @@ public: _unsetMask(0) { connect(&_intervalTimer, SIGNAL(timeout()), this, SLOT(intervalCheck())); + connect(&_strategyExpiryTimer, SIGNAL(timeout()), this, SLOT(expireStrategy())); } void initClientConnections() { @@ -99,7 +100,6 @@ public: connect(_service->_client, SIGNAL(idleNewMailNotification(QMailFolderId)), this, SLOT(queueMailCheck(QMailFolderId))); connect(_service->_client, SIGNAL(idleFlagsChangedNotification(QMailFolderId)), this, SLOT(queueFlagsChangedCheck())); connect(_service->_client, SIGNAL(matchingMessageIds(QMailMessageIdList)), this, SIGNAL(matchingMessageIds(QMailMessageIdList))); - connect(&_strategyExpiryTimer, SIGNAL(timeout()), this, SLOT(expireStrategy())); } void setIntervalTimer(int interval) |
