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 2026-03-09 17:10:00 +08:00
parent 4d85e517b4
commit b658f7ff68
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

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):
"""