(self)
| 15 | self.name = "AddrBroadcaster" |
| 16 | |
| 17 | def run(self): |
| 18 | while not state.shutdown: |
| 19 | chunk = [] |
| 20 | while True: |
| 21 | try: |
| 22 | data = addrQueue.get(False) |
| 23 | chunk.append((data[0], data[1])) |
| 24 | if len(data) > 2: |
| 25 | source = BMConnectionPool().getConnectionByAddr(data[2]) |
| 26 | except Queue.Empty: |
| 27 | break |
| 28 | except KeyError: |
| 29 | continue |
| 30 | |
| 31 | #finish |
| 32 | |
| 33 | addrQueue.iterate() |
| 34 | for i in range(len(chunk)): |
| 35 | addrQueue.task_done() |
| 36 | self.stop.wait(1) |
nothing calls this directly
no test coverage detected