mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 11:01:53 +08:00
fixed "got Future attached to a different loop"
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
|
import asyncio
|
||||||
import dataclasses
|
import dataclasses
|
||||||
import inspect
|
import inspect
|
||||||
import json
|
import json
|
||||||
@@ -240,6 +241,7 @@ class HttpServer:
|
|||||||
shutdown_timeout=1,
|
shutdown_timeout=1,
|
||||||
access_log_format=access_log_format,
|
access_log_format=access_log_format,
|
||||||
print=self.__run_app_print,
|
print=self.__run_app_print,
|
||||||
|
loop=asyncio.get_event_loop(),
|
||||||
**socket_kwargs,
|
**socket_kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user