mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-14 04:00:41 +02:00
[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:
parent
c67c1f2c03
commit
62068381a3
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user