MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / stopThread

Method stopThread

src/network/networkthread.py:21–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 BMConnectionPool().loop()
20
21 def stopThread(self):
22 super(BMNetworkThread, self).stopThread()
23 for i in BMConnectionPool().listeningSockets.values():
24 try:
25 i.close()
26 except:
27 pass
28 for i in BMConnectionPool().outboundConnections.values():
29 try:
30 i.close()
31 except:
32 pass
33 for i in BMConnectionPool().inboundConnections.values():
34 try:
35 i.close()
36 except:
37 pass
38
39 # just in case
40 asyncore.close_all()

Callers

nothing calls this directly

Calls 2

BMConnectionPoolClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected