summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-11-28 08:39:53 +0300
committerMaxim Devaev <[email protected]>2021-11-28 08:39:57 +0300
commit2088b7887245241a892f191424e2048acca5fdc3 (patch)
treea8461a9ba257f59309b1a6614cb42470694ce96e /kvmd
parentb27b4f14919ef45195b4378f78a09a9983e3fd53 (diff)
fixed "got Future attached to a different loop"
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/apps/kvmd/http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/apps/kvmd/http.py b/kvmd/apps/kvmd/http.py
index 56d11c14..02b879f9 100644
--- a/kvmd/apps/kvmd/http.py
+++ b/kvmd/apps/kvmd/http.py
@@ -22,6 +22,7 @@
import os
import socket
+import asyncio
import dataclasses
import inspect
import json
@@ -240,6 +241,7 @@ class HttpServer:
shutdown_timeout=1,
access_log_format=access_log_format,
print=self.__run_app_print,
+ loop=asyncio.get_event_loop(),
**socket_kwargs,
)