3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-29 14:12:39 +01:00

Don't loop infinitely if _send fails...

This commit is contained in:
James Lu 2021-01-10 10:28:34 -08:00
parent b254a7f971
commit 15d51b3455

View File

@ -2105,6 +2105,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
except: except:
log.exception("(%s) Failed to send message %r; aborting!", self.name, data) log.exception("(%s) Failed to send message %r; aborting!", self.name, data)
self.disconnect() self.disconnect()
return
else: else:
break break