mirror of
https://github.com/GNS3/gns3-server
synced 2025-02-17 18:42:00 +00:00
Fix bug when starting of vpcs stopped with "quit". Fixes https://github.com/GNS3/gns3-gui/issues/3110
This commit is contained in:
parent
4c339eade1
commit
9e6ccc3f61
@ -260,10 +260,11 @@ class VPCSVM(BaseNode):
|
|||||||
|
|
||||||
if self._started:
|
if self._started:
|
||||||
log.info("VPCS process has stopped, return code: %d", returncode)
|
log.info("VPCS process has stopped, return code: %d", returncode)
|
||||||
await self._stop_ubridge()
|
|
||||||
self._started = False
|
self._started = False
|
||||||
self.status = "stopped"
|
self.status = "stopped"
|
||||||
self._process = None
|
self._process = None
|
||||||
|
await self._stop_ubridge()
|
||||||
|
await super().stop()
|
||||||
if returncode != 0:
|
if returncode != 0:
|
||||||
self.project.emit("log.error", {"message": "VPCS process has stopped, return code: {}\n{}".format(returncode, self.read_vpcs_stdout())})
|
self.project.emit("log.error", {"message": "VPCS process has stopped, return code: {}\n{}".format(returncode, self.read_vpcs_stdout())})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user