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,7 +138,8 @@ class OnionShareGui(QtGui.QWidget):
t.start() t.start()
def stop_server(self): 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.app.cleanup()
self.stop_server_finished.emit() self.stop_server_finished.emit()