mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-01 02:46:22 -04:00
Properly stop the server when the timeout is reached (and reset the interface so we can share again)
This commit is contained in:
parent
b0aae09f70
commit
501d771064
1 changed files with 1 additions and 1 deletions
|
@ -390,7 +390,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
||||||
if self.app.shutdown_timer and self.server_status.timer_enabled:
|
if self.app.shutdown_timer and self.server_status.timer_enabled:
|
||||||
if self.timeout > 0:
|
if self.timeout > 0:
|
||||||
if not self.app.shutdown_timer.is_alive():
|
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.status_bar.showMessage(strings._('close_on_timeout',True))
|
||||||
self.server_status.shutdown_timeout_reset()
|
self.server_status.shutdown_timeout_reset()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue