diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-10-04 10:51:06 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-10-04 10:51:06 -0300 |
commit | 9bc41827f64dcd75ea91f27b6b151c875f03aec1 (patch) | |
tree | faf53f01cbe4e76eb73d2861970e80ea655c4f7e /src/leap/bitmask/gui | |
parent | b95bbc415086c4ebdf9d0a8adc8b64a9fe3bf8b1 (diff) | |
parent | 90a731e8a5f7e8b44b5ad76262ff01fb98f8e18c (diff) |
Merge remote-tracking branch 'chiiph/bug/properly_stop_smtp' into develop
Diffstat (limited to 'src/leap/bitmask/gui')
-rw-r--r-- | src/leap/bitmask/gui/mainwindow.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py index 79ff68c4..84f09fd9 100644 --- a/src/leap/bitmask/gui/mainwindow.py +++ b/src/leap/bitmask/gui/mainwindow.py @@ -312,6 +312,7 @@ class MainWindow(QtGui.QMainWindow): self._soledad_ready = False self._keymanager = None self._smtp_service = None + self._smtp_port = None self._imap_service = None self._login_defer = None @@ -1104,7 +1105,7 @@ class MainWindow(QtGui.QMainWindow): # the specific default. from leap.mail.smtp import setup_smtp_relay - self._smtp_service = setup_smtp_relay( + self._smtp_service, self._smtp_port = setup_smtp_relay( port=2013, keymanager=self._keymanager, smtp_host=host, @@ -1124,6 +1125,7 @@ class MainWindow(QtGui.QMainWindow): # but in the imap case we are just stopping the fetcher. if self._smtp_service is not None: logger.debug('Stopping smtp service.') + self._smtp_port.stopListening() self._smtp_service.doStop() ################################################################### |