Fix nemubot shutdown when some DCC connections are alive
This commit is contained in:
parent
6c6a11b80c
commit
3a82cc00cd
2 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue