mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue