Fix nemubot shutdown when some DCC connections are alive

This commit is contained in:
Némunaire 2012-11-02 13:58:34 +01:00
commit 3a82cc00cd
2 changed files with 4 additions and 2 deletions

View file

@ -194,7 +194,8 @@ class IRCServer(server.Server):
def disconnect(self):
"""Close the socket with the server and all DCC client connections"""
#Close all DCC connection
for clt in self.dcc_clients:
clts = [c for c in self.dcc_clients]
for clt in clts:
self.dcc_clients[clt].disconnect()
return server.Server.disconnect(self)