mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
qa: Fix "RuntimeError: Event loop is closed" on Windows
This commit is contained in:
parent
2161a05855
commit
f55932678f
1 changed files with 2 additions and 0 deletions
|
@ -577,6 +577,8 @@ class NetworkThread(threading.Thread):
|
|||
|
||||
NetworkThread.listeners = {}
|
||||
NetworkThread.protos = {}
|
||||
if sys.platform == 'win32':
|
||||
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
||||
NetworkThread.network_event_loop = asyncio.new_event_loop()
|
||||
|
||||
def run(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue