diff --git a/src/IRCServer.py b/src/IRCServer.py index 3bac4fe0..e92cd291 100644 --- a/src/IRCServer.py +++ b/src/IRCServer.py @@ -221,7 +221,7 @@ class Server(IRCObject.Object): data = b"" try: data = self.socket.recv(4096) - except (ConnectionResetError, socket.timeout): + except (ConnectionResetError, socket.timeout, OSError): self.disconnect() return None if not data: