Agent: Use is_set() of threading.Event

This commit is contained in:
Kekoa Kaaikala 2022-09-06 13:20:19 +00:00
parent 906edf3662
commit 333e587aab
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class TCPConnectionHandler(Thread):
l_socket.settimeout(PROXY_TIMEOUT)
l_socket.listen(5)
while not self._stopped:
while not self._stopped.is_set():
try:
source, _ = l_socket.accept()
except socket.timeout: