mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
#20013: don't raise socket error when selected mailbox deleted.
I'm checking this in without a test because not much of this code is tested and I don't have time to work up the necessary extensions to the existing test framework. The patch itself was tested by the person who reported the bug.
This commit is contained in:
parent
fcc0072380
commit
bd3a11ba34
2 changed files with 9 additions and 0 deletions
|
@ -1063,6 +1063,11 @@ class IMAP4:
|
|||
del self.tagged_commands[tag]
|
||||
return result
|
||||
|
||||
# If we've seen a BYE at this point, the socket will be
|
||||
# closed, so report the BYE now.
|
||||
|
||||
self._check_bye()
|
||||
|
||||
# Some have reported "unexpected response" exceptions.
|
||||
# Note that ignoring them here causes loops.
|
||||
# Instead, send me details of the unexpected response and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue