Socket: Only call self.irc.feedMsg if self.irc is not None (ie. a reconnect is not in progress).

This commit is contained in:
Valentin Lorentz 2013-12-05 12:37:00 +00:00
parent f894983b55
commit c774013e1f

View File

@ -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