Clean up watchdog thread when quitting, which avoids segfaults

This commit is contained in:
Micah Lee 2020-03-22 21:32:53 -07:00
parent 76d88d0648
commit aebc96142f
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 11 additions and 3 deletions

View file

@ -284,7 +284,5 @@ class MainWindow(QtWidgets.QMainWindow):
e.accept()
def cleanup(self):
for index in range(self.tabs.count()):
tab = self.tabs.widget(index)
tab.cleanup()
self.tabs.cleanup()
self.common.gui.onion.cleanup()