Make sure the node shows as stopped when the wrap console cannot be stopped. Ref https://github.com/GNS3/gns3-registry/pull/1010

This commit is contained in:
grossmj committed 2026-03-09 17:10:00 +08:00
1 parent 4d85e517b4
commit b658f7ff68
1 file changed
+4 -2
+4 -2
View File
@@ -312,8 +312,10 @@ class BaseNode:
Stop the node process.
"""
await self.stop_wrap_console()
self.status = "stopped"
try:
await self.stop_wrap_console()
finally:
self.status = "stopped"
def suspend(self):
"""