don't try stopping the web app if it hasn't started

This commit is contained in:
Micah Lee 2014-09-03 17:56:10 -07:00
parent d00b296c47
commit 3c071ce500

View file

@ -138,6 +138,7 @@ class OnionShareGui(QtGui.QWidget):
t.start() t.start()
def stop_server(self): def stop_server(self):
if self.server_status.status == self.server_status.STATUS_STARTED:
web.stop(self.app.port) web.stop(self.app.port)
self.app.cleanup() self.app.cleanup()
self.stop_server_finished.emit() self.stop_server_finished.emit()