Prevent capture on non running node

Fix https://github.com/GNS3/gns3-gui/issues/1656
This commit is contained in:
Julien Duponchelle
2016-11-22 16:05:00 +01:00
parent 31c04cc95b
commit 875051d05e
9 changed files with 158 additions and 39 deletions

View File

@ -410,7 +410,7 @@ class Compute:
self._memory_usage_percent = event["memory_usage_percent"]
self._controller.notification.emit("compute.updated", self.__json__())
else:
self._controller.notification.dispatch(action, event, compute_id=self.id)
yield from self._controller.notification.dispatch(action, event, compute_id=self.id)
if self._ws:
yield from self._ws.close()