3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-24 11:14:07 +01:00

IRCNetwork: use a less confusing error than "No data received"

This commit is contained in:
James Lu 2017-07-12 22:18:52 -07:00
parent d57e141fbc
commit 69bafedcca

View File

@ -1340,7 +1340,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
buf += data buf += data
if not data: if not data:
self._log_connection_error('(%s) No data received, disconnecting!', self.name) self._log_connection_error('(%s) Connection lost, disconnecting.', self.name)
return return
elif (time.time() - self.lastping) > self.pingtimeout: elif (time.time() - self.lastping) > self.pingtimeout:
self._log_connection_error('(%s) Connection timed out.', self.name) self._log_connection_error('(%s) Connection timed out.', self.name)