mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
merge bitcoin#22987: Fix "RuntimeError: Event loop is closed" on Windows
This commit is contained in:
parent
ba60d5459e
commit
7c03133be3
@ -631,6 +631,8 @@ class NetworkThread(threading.Thread):
|
|||||||
|
|
||||||
NetworkThread.listeners = {}
|
NetworkThread.listeners = {}
|
||||||
NetworkThread.protos = {}
|
NetworkThread.protos = {}
|
||||||
|
if sys.platform == 'win32':
|
||||||
|
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
||||||
NetworkThread.network_event_loop = asyncio.new_event_loop()
|
NetworkThread.network_event_loop = asyncio.new_event_loop()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user