Asyncio qemu fix and raise error if coroutine not used

pull/370/head
Julien Duponchelle 9 years ago
parent 5cb2b33a99
commit 91c2bd7e98

@ -870,7 +870,7 @@ class QemuVM(BaseVM):
log.error("Could not start QEMU {}: {}\n{}".format(self.qemu_path, e, stdout))
raise QemuError("Could not start QEMU {}: {}\n{}".format(self.qemu_path, e, stdout))
self._set_process_priority()
yield from self._set_process_priority()
if self._cpu_throttling:
self._set_cpu_throttling()

@ -221,6 +221,9 @@ class Server:
ssl_context = self._create_ssl_context(server_config)
self._loop = asyncio.get_event_loop()
# Asyncio will raise error if coroutine is not called
self._loop.set_debug(True)
app = aiohttp.web.Application()
for method, route, handler in Route.get_routes():
log.debug("Adding route: {} {}".format(method, route))

Loading…
Cancel
Save