From 2088b7887245241a892f191424e2048acca5fdc3 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 28 Nov 2021 08:39:53 +0300 Subject: fixed "got Future attached to a different loop" --- kvmd/apps/kvmd/http.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kvmd/apps') 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, ) -- cgit v1.2.3