[tests] Make p2p-leaktests.py more robust

This commit is contained in:
John Newbery committed 2017-08-24 17:28:13 -04:00
1 parent 4ae6d0fbef
commit 0063d2c3dc
2 files changed
+8 -2

No files matched your search

@@ -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