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:
parent
d57e141fbc
commit
69bafedcca
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user