mirror of https://github.com/Mikaela/Limnoria.git
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')
|
line = line.decode('utf8', 'replace')
|
||||||
|
|
||||||
msg = drivers.parseMsg(line)
|
msg = drivers.parseMsg(line)
|
||||||
if msg is not None:
|
if msg is not None and self.irc is not None:
|
||||||
self.irc.feedMsg(msg)
|
self.irc.feedMsg(msg)
|
||||||
except socket.timeout:
|
except socket.timeout:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue