Skip to content

Commit f559326

Browse files
committed
qa: Fix "RuntimeError: Event loop is closed" on Windows
1 parent 2161a05 commit f559326

File tree

1 file changed

+2
-0
lines changed
  • test/functional/test_framework

1 file changed

+2
-0
lines changed

test/functional/test_framework/p2p.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,8 @@ def __init__(self):
577577

578578
NetworkThread.listeners = {}
579579
NetworkThread.protos = {}
580+
if sys.platform == 'win32':
581+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
580582
NetworkThread.network_event_loop = asyncio.new_event_loop()
581583

582584
def run(self):

0 commit comments

Comments
 (0)