summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-08-01 17:52:17 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-08-01 18:08:15 -0300
commit599f6bf0d4f819ab1613bf9449c122025da07c13 (patch)
tree46e0b34b8075194254a92a9c7109575f4c5df935 /src/leap
parent571fdf3908bc34d063e6a316abed448efbe1bfdb (diff)
Add defer canceling to the app quit method.
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/gui/mainwindow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index 9dd44f4c..2325ecf0 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -1402,8 +1402,13 @@ class MainWindow(QtGui.QMainWindow):
self._logger_window.close()
if self._login_defer:
+ logger.debug("Cancelling login defer.")
self._login_defer.cancel()
+ if self._download_provider_defer:
+ logger.debug("Cancelling download provider defer.")
+ self._download_provider_defer.cancel()
+
self.close()
if self._quit_callback: