[tests] Make p2p-leaktests.py more robust

This commit is contained in:
John Newbery
2017-08-17 11:35:45 -04:00
parent 4ae6d0fbef
commit 0063d2c3dc
2 changed files with 8 additions and 2 deletions

View File

@@ -1837,6 +1837,7 @@ class NetworkThread(Thread):
disconnected.append(obj)
[ obj.handle_close() for obj in disconnected ]
asyncore.loop(0.1, use_poll=True, map=mininode_socket_map, count=1)
logger.debug("Network thread closing")
# An exception we can raise if we detect a potential disconnect