mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-15 12:59:06 +00:00
Fixes race condition when generating an ghost IOS file.
This commit is contained in:
parent
9dc713f31d
commit
85518a3cd6
@ -105,6 +105,7 @@ class Dynamips(BaseManager):
|
||||
|
||||
_VM_CLASS = DynamipsVM
|
||||
_DEVICE_CLASS = DynamipsDevice
|
||||
ghost_ios_lock = asyncio.Lock()
|
||||
|
||||
def __init__(self):
|
||||
|
||||
@ -330,6 +331,7 @@ class Dynamips(BaseManager):
|
||||
|
||||
ghost_ios_support = self.config.get_section_config("Dynamips").get("ghost_ios_support", True)
|
||||
if ghost_ios_support:
|
||||
with (yield from Dynamips.ghost_ios_lock):
|
||||
yield from self._set_ghost_ios(vm)
|
||||
|
||||
@asyncio.coroutine
|
||||
|
Loading…
Reference in New Issue
Block a user