mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-08 22:32:44 -04:00
don't try stopping the web app if it hasn't started
This commit is contained in:
parent
d00b296c47
commit
3c071ce500
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue