Properly stop the server when the timeout is reached (and reset the interface so we can share again)

This commit is contained in:
Miguel Jacq 2017-12-02 14:53:38 +11:00
parent 454a6a638b
commit 6ad2737d08
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -390,7 +390,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
if self.app.shutdown_timer and self.server_status.timer_enabled:
if self.timeout > 0:
if not self.app.shutdown_timer.is_alive():
self.stop_server()
self.server_status.stop_server()
self.status_bar.showMessage(strings._('close_on_timeout',True))
self.server_status.shutdown_timeout_reset()