mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-19 11:16:43 +00:00
Asyncio qemu fix and raise error if coroutine not used
This commit is contained in:
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…
Reference in New Issue
Block a user