Add timeout

This commit is contained in:
Fierelier 2021-04-20 17:23:37 +02:00
parent aaff11808e
commit b65b9d0f95

View File

@ -50,4 +50,4 @@ while True:
conn, address = serverSocket.accept() conn, address = serverSocket.accept()
with connectionLock: with connectionLock:
connection = conn connection = conn
connection.settimeout(None) connection.settimeout(5)