Manage error when GNS3VM failed to start

Fix https://github.com/GNS3/gns3-gui/issues/1446
This commit is contained in:
Julien Duponchelle committed 2016-09-01 15:36:41 +02:00
1 parent f216422d0f
commit 4bbd8938ab
7 files changed
+101 -12

No files matched your search

+3
View File
@@ -334,6 +334,9 @@ class Compute:
@asyncio.coroutine
def http_query(self, method, path, data=None, **kwargs):
if not self._connected:
if self._id == "vm" and not self._controller.gns3vm.running:
yield from self._controller.gns3vm.start()
yield from self.connect()
if not self._connected:
raise aiohttp.web.HTTPConflict(text="Can't connect to {}".format(self._name))