mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Socket: Only call self.irc.feedMsg if self.irc is not None (ie. a reconnect is not in progress).
This commit is contained in:
parent
f894983b55
commit
c774013e1f
@ -229,7 +229,7 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
line = line.decode('utf8', 'replace')
|
||||
|
||||
msg = drivers.parseMsg(line)
|
||||
if msg is not None:
|
||||
if msg is not None and self.irc is not None:
|
||||
self.irc.feedMsg(msg)
|
||||
except socket.timeout:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user