forked from p15670423/monkey
Agent: Use is_set() of threading.Event
This commit is contained in:
parent
906edf3662
commit
333e587aab
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue