Fix bug in irc disconnect, trying to pass a reason when portal.disconnect does not support one.

This commit is contained in:
Griatch 2017-04-25 22:59:59 +02:00
parent 6a621af4d7
commit d012974650

View file

@ -206,7 +206,7 @@ class IRCBot(irc.IRCClient, Session):
reason (str): Motivation for the disconnect.
"""
self.sessionhandler.disconnect(self, reason=reason)
self.sessionhandler.disconnect(self)
self.stopping = True
self.transport.loseConnection()