summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes/bug_4504_properly_close_soledad1
-rw-r--r--src/leap/bitmask/gui/mainwindow.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/changes/bug_4504_properly_close_soledad b/changes/bug_4504_properly_close_soledad
new file mode 100644
index 00000000..b33db9c2
--- /dev/null
+++ b/changes/bug_4504_properly_close_soledad
@@ -0,0 +1 @@
+- Properly close Soledad at quit time. Fixes #4504. \ No newline at end of file
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index 25e25e45..3758bab5 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -1652,9 +1652,9 @@ class MainWindow(QtGui.QMainWindow):
# XXX this can timeout after loong time: See #3368
self._srp_auth.logout()
- if self._soledad:
+ if self._soledad_bootstrapper.soledad is not None:
logger.debug("Closing soledad...")
- self._soledad.close()
+ self._soledad_bootstrapper.soledad.close()
else:
logger.error("No instance of soledad was found.")