mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-19 07:48:10 +00:00
Fixes asyncio Lock instantiation issues on Windows.
Because the event loop is essentially a global variable, asyncio Lock objects that get instantiated early could grab a reference to the wrong loop (Selector instead of Proactor).
This commit is contained in:
@ -44,10 +44,11 @@ class BaseManager:
|
||||
Responsible of management of a VM pool
|
||||
"""
|
||||
|
||||
_convert_lock = asyncio.Lock()
|
||||
_convert_lock = None
|
||||
|
||||
def __init__(self):
|
||||
|
||||
BaseManager._convert_lock = asyncio.Lock()
|
||||
self._vms = {}
|
||||
self._port_manager = None
|
||||
self._config = Config.instance()
|
||||
|
Reference in New Issue
Block a user