Fix stacktrace when exiting with Ctrl + C

Fix #547
This commit is contained in:
Julien Duponchelle
2016-06-02 13:44:12 +02:00
parent f47eb326c7
commit 4afa5994e8
5 changed files with 31 additions and 1 deletions

View File

@ -93,6 +93,11 @@ class Compute:
self._connected = False
self._controller.notification.emit("compute.updated", self.__json__())
@asyncio.coroutine
def close(self):
self._connected = False
self._session.close()
@property
def version(self):
"""