folder: IMAP: display error message before starting next try

Fetching messages is tried more than once. Display the error message at correct
time.

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht
2016-11-22 00:58:14 +01:00
parent 1f635c415f
commit 04ae3c8dad
2 changed files with 6 additions and 4 deletions

View File

@ -477,7 +477,6 @@ class IMAPServer(object):
# Try to find one that previously belonged to this thread
# as an optimization. Start from the back since that's where
# they're popped on.
imapobj = None
for i in range(len(self.availableconnections) - 1, -1, -1):
tryobj = self.availableconnections[i]
if self.lastowner[tryobj] == curThread.ident: