mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-27 09:51:17 -05:00
don't try stopping the web app if it hasn't started
This commit is contained in:
parent
d00b296c47
commit
3c071ce500
@ -138,7 +138,8 @@ class OnionShareGui(QtGui.QWidget):
|
||||
t.start()
|
||||
|
||||
def stop_server(self):
|
||||
web.stop(self.app.port)
|
||||
if self.server_status.status == self.server_status.STATUS_STARTED:
|
||||
web.stop(self.app.port)
|
||||
self.app.cleanup()
|
||||
self.stop_server_finished.emit()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user