1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +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:
grossmj 2021-02-14 13:50:10 +10:30
parent 4c339eade1
commit 9e6ccc3f61

View File

@ -260,10 +260,11 @@ class VPCSVM(BaseNode):
if self._started:
log.info("VPCS process has stopped, return code: %d", returncode)
await self._stop_ubridge()
self._started = False
self.status = "stopped"
self._process = None
await self._stop_ubridge()
await super().stop()
if returncode != 0:
self.project.emit("log.error", {"message": "VPCS process has stopped, return code: {}\n{}".format(returncode, self.read_vpcs_stdout())})