[tests] Make mininode_lock non-reentrant

There's no need for mininode_lock to be reentrant.
Use a simpler non-recursive lock.
This commit is contained in:
John Newbery 2020-06-05 11:01:54 -04:00
parent c67c1f2c03
commit 62068381a3

View file

@ -492,7 +492,7 @@ class P2PInterface(P2PConnection):
# P2PConnection acquires this lock whenever delivering a message to a P2PInterface.
# This lock should be acquired in the thread running the test logic to synchronize
# access to any data shared with the P2PInterface or P2PConnection.
mininode_lock = threading.RLock()
mininode_lock = threading.Lock()
class NetworkThread(threading.Thread):