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

Method run

src/network/announcethread.py:19–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 logger.info("init announce thread")
18
19 def run(self):
20 lastSelfAnnounced = 0
21 while not self._stopped and state.shutdown == 0:
22 processed = 0
23 if lastSelfAnnounced < time.time() - UDPSocket.announceInterval:
24 self.announceSelf()
25 lastSelfAnnounced = time.time()
26 if processed == 0:
27 self.stop.wait(10)
28
29 def announceSelf(self):
30 for connection in BMConnectionPool().udpSockets.values():

Callers

nothing calls this directly

Calls 2

announceSelfMethod · 0.95
waitMethod · 0.80

Tested by

no test coverage detected