(self)
| 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(): |
nothing calls this directly
no test coverage detected