mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
Revert commit: Remove lock for Ghost IOS (problem on Windows).
This commit is contained in:
parent
70d5dea256
commit
666064f1ae
@ -105,6 +105,7 @@ class Dynamips(BaseManager):
|
|||||||
|
|
||||||
_VM_CLASS = DynamipsVM
|
_VM_CLASS = DynamipsVM
|
||||||
_DEVICE_CLASS = DynamipsDevice
|
_DEVICE_CLASS = DynamipsDevice
|
||||||
|
_ghost_ios_lock = asyncio.Lock()
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
@ -347,6 +348,7 @@ class Dynamips(BaseManager):
|
|||||||
|
|
||||||
ghost_ios_support = self.config.get_section_config("Dynamips").getboolean("ghost_ios_support", True)
|
ghost_ios_support = self.config.get_section_config("Dynamips").getboolean("ghost_ios_support", True)
|
||||||
if ghost_ios_support:
|
if ghost_ios_support:
|
||||||
|
with (yield from Dynamips._ghost_ios_lock):
|
||||||
yield from self._set_ghost_ios(vm)
|
yield from self._set_ghost_ios(vm)
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
Loading…
Reference in New Issue
Block a user