mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Updated actually to work.
This commit is contained in:
parent
a0dbc917c2
commit
e4d77f4285
@ -106,9 +106,13 @@ class AsyncoreDriver(asynchat.async_chat, drivers.ServersMixin):
|
|||||||
if msg is not None:
|
if msg is not None:
|
||||||
self.irc.feedMsg(msg)
|
self.irc.feedMsg(msg)
|
||||||
|
|
||||||
def handle_close(self):
|
def handle_close(self, wait=True):
|
||||||
|
if not wait:
|
||||||
|
self._scheduleReconnect(at=0)
|
||||||
|
else:
|
||||||
self._scheduleReconnect()
|
self._scheduleReconnect()
|
||||||
self.die()
|
if self.socket is not None:
|
||||||
|
self.close()
|
||||||
reconnect = handle_close
|
reconnect = handle_close
|
||||||
|
|
||||||
def handle_connect(self):
|
def handle_connect(self):
|
||||||
@ -116,7 +120,7 @@ class AsyncoreDriver(asynchat.async_chat, drivers.ServersMixin):
|
|||||||
|
|
||||||
def die(self):
|
def die(self):
|
||||||
drivers.log.die(self.irc)
|
drivers.log.die(self.irc)
|
||||||
self.close()
|
self.reconnect()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ignore(poller)
|
ignore(poller)
|
||||||
|
Loading…
Reference in New Issue
Block a user