Do not crash if no console port is available for VBox

I don't know how user manage to fall in this situation.

Fix #127
This commit is contained in:
Julien Duponchelle committed 2015-04-01 17:59:58 +02:00
1 parent 90d55fcb8a
commit a3c8201bcc
3 files changed
+4 -3

No files matched your search

@@ -189,7 +189,7 @@ class VirtualBoxVM(BaseVM):
# add a guest property to let the VM know about the GNS3 project directory
yield from self.manager.execute("guestproperty", ["set", self._vmname, "ProjectDirInGNS3", self.working_dir])
if self._enable_remote_console:
if self._enable_remote_console and self._console is not None:
self._start_remote_console()
@asyncio.coroutine