mirror of
https://github.com/GNS3/gns3-gui.git
synced 2026-05-17 08:56:06 +03:00
Fix race condition when trying to automatically open a console and the project is already running. Fixes #1493.
This commit is contained in:
@@ -173,7 +173,7 @@ class Node(BaseNode):
|
||||
:returns: port number
|
||||
"""
|
||||
|
||||
return self.settings()["console"]
|
||||
return self.settings().get("console")
|
||||
|
||||
def isStarted(self):
|
||||
"""
|
||||
@@ -683,6 +683,9 @@ class Node(BaseNode):
|
||||
console_type = "telnet"
|
||||
else:
|
||||
console_port = self.console()
|
||||
if console_port is None:
|
||||
log.debug("No console port allocated for {}".format(self.name()))
|
||||
return
|
||||
if "console_type" in self.settings():
|
||||
console_type = self.consoleType()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user