evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
10.91k stars 509 forks source link

The prompt dialog countdown accelerates as connections are enqueued to be allowed/denied #273

Closed gustavo-iniguez-goya closed 3 years ago

gustavo-iniguez-goya commented 5 years ago

When a new connection goes out and opensnitch opens the dialog to allow or deny it, as new connections are enqueued the countdown of the displayed dialog accelerates.

Example: https://imgur.com/a/WJWjdLX

As far as I can tell, the problem might be that thread which handles the (tick) countdown is still running when a new dialog is launched, so the new one starts counting down. It should wait to exit: prompt.py:

         with self._lock:
             # reset state
             self._tick = self._cfg.default_timeout
+            if self._tick_thread != None:
+                self._tick_thread.join()
Khoramyar commented 5 years ago

Thank you! This was driving me crazy...