mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Only try to ping if we're not a zombie.
This commit is contained in:
parent
c943ab77bb
commit
724b612f52
@ -644,7 +644,7 @@ class Irc(IrcCommandDispatcher):
|
|||||||
if not self.zombie:
|
if not self.zombie:
|
||||||
self.fastqueue.enqueue(msg)
|
self.fastqueue.enqueue(msg)
|
||||||
else:
|
else:
|
||||||
log.warning('Refusing to send %r; %s is a zombie.', self, msg)
|
log.warning('Refusing to send %r; %s is a zombie.', msg, self)
|
||||||
|
|
||||||
def takeMsg(self):
|
def takeMsg(self):
|
||||||
"""Called by the IrcDriver; takes a message to be sent."""
|
"""Called by the IrcDriver; takes a message to be sent."""
|
||||||
@ -667,7 +667,7 @@ class Irc(IrcCommandDispatcher):
|
|||||||
log.warning('Ping sent at %s not replied to.',
|
log.warning('Ping sent at %s not replied to.',
|
||||||
log.timestamp(self.lastping))
|
log.timestamp(self.lastping))
|
||||||
self.driver.reconnect()
|
self.driver.reconnect()
|
||||||
else:
|
elif not self.zombie:
|
||||||
self.lastping = now
|
self.lastping = now
|
||||||
now = str(int(now))
|
now = str(int(now))
|
||||||
self.outstandingPing = True
|
self.outstandingPing = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user