diff --git a/classes.py b/classes.py index 9828f6e..2dbe63c 100644 --- a/classes.py +++ b/classes.py @@ -1554,7 +1554,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils): try: data = self._socket.recv(2048) - except BlockingIOError: + except (BlockingIOError, ssl.SSLWantReadError, ssl.SSLWantWriteError): log.debug('(%s) No data to read, trying again later...', self.name) if self._aborted.wait(self.SOCKET_REPOLL_WAIT): break