mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
parent
59c8a01a66
commit
61a65a3951
1 changed files with 2 additions and 0 deletions
|
@ -123,8 +123,10 @@ class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
def _timeout_worker(self):
|
||||
while self._tick > 0 and self._done.is_set() is False:
|
||||
t = threading.currentThread()
|
||||
# stop only stops the coundtdown, not the thread itself.
|
||||
if getattr(t, "stop", True):
|
||||
self._tick = int(self._cfg.getSettings("global/default_timeout"))
|
||||
time.sleep(1)
|
||||
continue
|
||||
|
||||
self._tick -= 1
|
||||
|
|
Loading…
Add table
Reference in a new issue