Network thread shutdown iterator fix
Thanks to @g1itch for pointing this out.
This commit is contained in:
parent
25a9e5ea45
commit
222e666a60
|
@ -20,17 +20,17 @@ class BMNetworkThread(threading.Thread, StoppableThread):
|
||||||
|
|
||||||
def stopThread(self):
|
def stopThread(self):
|
||||||
super(BMNetworkThread, self).stopThread()
|
super(BMNetworkThread, self).stopThread()
|
||||||
for i in BMConnectionPool().listeningSockets:
|
for i in BMConnectionPool().listeningSockets.values():
|
||||||
try:
|
try:
|
||||||
i.close()
|
i.close()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
for i in BMConnectionPool().outboundConnections:
|
for i in BMConnectionPool().outboundConnections.values():
|
||||||
try:
|
try:
|
||||||
i.close()
|
i.close()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
for i in BMConnectionPool().inboundConnections:
|
for i in BMConnectionPool().inboundConnections.values():
|
||||||
try:
|
try:
|
||||||
i.close()
|
i.close()
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user