Also catch socket.timeout in IRCServer.read()
This commit is contained in:
parent
c3e667e0a1
commit
4a3dbeb7b8
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ class Server(object):
|
|||
data = b""
|
||||
try:
|
||||
data = self.read_buffer + self.socket.recv(4096)
|
||||
except ConnectionResetError:
|
||||
except (ConnectionResetError, socket.timeout):
|
||||
self.disconnect()
|
||||
return []
|
||||
self.read_buffer = b""
|
||||
|
|
Loading…
Reference in a new issue