Make sure to wait for the unload coroutine to finish when the server is shutting down.

This commit is contained in:
Jeremy
2015-02-02 17:01:25 -07:00
parent df72369b0e
commit 66569f26a4
2 changed files with 9 additions and 6 deletions

View File

@ -101,7 +101,7 @@ class BaseManager:
try:
yield from self.close_vm(uuid)
except Exception as e:
log.warn("Could not delete VM {}: {}".format(uuid, e))
log.error("Could not delete VM {}: {}".format(uuid, e), exc_info=1)
continue
if hasattr(BaseManager, "_instance"):