mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-26 14:36:03 -05:00
Fix bug when handling a broken tor connection
This commit is contained in:
parent
44b534de6c
commit
f0fd0857ae
@ -380,10 +380,7 @@ class Tab(QtWidgets.QWidget):
|
||||
strings._("gui_tor_connection_lost"),
|
||||
strings._("gui_tor_connection_error_settings"),
|
||||
)
|
||||
|
||||
self.share_mode.handle_tor_broke()
|
||||
self.receive_mode.handle_tor_broke()
|
||||
self.website_mode.handle_tor_broke()
|
||||
self.get_mode().handle_tor_broke()
|
||||
|
||||
# Process events from the web object
|
||||
if self.mode == self.common.gui.MODE_SHARE:
|
||||
|
@ -46,7 +46,10 @@ class GuiBaseTest(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
# Quit
|
||||
QtCore.QTimer.singleShot(0, cls.gui.close_dialog.accept_button.click)
|
||||
cls.gui.close()
|
||||
|
||||
cls.gui.cleanup()
|
||||
|
||||
# Shared test methods
|
||||
|
Loading…
x
Reference in New Issue
Block a user