[tests] Make p2p-leaktests.py more robust

Github-Pull: #11078
Rebased-From: 0063d2c3dc
This commit is contained in:
John Newbery
2017-08-17 11:35:45 -04:00
committed by MarcoFalke
parent 2e1ac70df9
commit f1ced0d776
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