mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fix 'Transport endpoint not connected' errors. Closes GH-437.
This commit is contained in:
parent
fecb010dac
commit
7588472f36
@ -243,7 +243,10 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
drivers.log.reconnect(self.irc.network)
|
||||
if self in self._instances:
|
||||
self._instances.remove(self)
|
||||
try:
|
||||
self.conn.shutdown(socket.SHUT_RDWR)
|
||||
except: # "Transport endpoint not connected"
|
||||
pass
|
||||
self.conn.close()
|
||||
self.connected = False
|
||||
if reset:
|
||||
|
Loading…
Reference in New Issue
Block a user