summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2022-02-04 10:48:48 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2022-02-08 13:32:49 +0100
commit9bcc2d9dd002dae14afc0404ac98cfc89ffc0003 (patch)
tree2be5a305cf5d90cd85c58491f6f179622a028850 /pykolab
parent6ca13983bd4f796f16269ac9bbdb37d975798851 (diff)
downloadpykolab-9bcc2d9dd002dae14afc0404ac98cfc89ffc0003.tar.gz
Omit explicit disconnect
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/imap/__init__.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 8c67b86..a54345c 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -240,17 +240,14 @@ class IMAP(object):
if server is None:
# No server specified, but make sure self.imap is None anyways
if hasattr(self, 'imap'):
- self.imap.disconnect()
del self.imap
# Empty out self._imap as well
for key in list(self._imap):
- self._imap[key].disconnect()
del self._imap[key]
else:
if server in self._imap:
- self._imap[server].disconnect()
del self._imap[server]
else:
log.warning(