mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Socket: Trigger reconnect if socket file number has been set to -1.
This commit is contained in:
parent
c40c2c1f79
commit
9d2c43d2f4
@ -158,6 +158,8 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
(sys.version_info[0] == 2 and
|
||||
inst.conn._sock.__class__ is socket._closedsocket):
|
||||
cls._instances.remove(inst)
|
||||
elif inst.conn.fileno() == -1:
|
||||
inst.reconnect()
|
||||
if not cls._instances:
|
||||
return
|
||||
rlist, wlist, xlist = select.select([x.conn for x in cls._instances],
|
||||
|
Loading…
Reference in New Issue
Block a user