mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
When canceling a server that has not started, forcefully kill the OnionThread instead of asking it to quit to ensure that it actually stops
This commit is contained in:
parent
fddc0826fe
commit
71558afb57
@ -350,10 +350,12 @@ class Mode(QtWidgets.QWidget):
|
||||
self.startup_thread.quit()
|
||||
if self.onion_thread:
|
||||
self.common.log("Mode", "cancel_server: quitting onion thread")
|
||||
self.onion_thread.quit()
|
||||
self.onion_thread.terminate()
|
||||
self.onion_thread.wait()
|
||||
if self.web_thread:
|
||||
self.common.log("Mode", "cancel_server: quitting web thread")
|
||||
self.web_thread.quit()
|
||||
self.web_thread.terminate()
|
||||
self.web_thread.wait()
|
||||
self.stop_server()
|
||||
|
||||
def cancel_server_custom(self):
|
||||
|
Loading…
Reference in New Issue
Block a user