mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
fixed "got Future attached to a different loop"
This commit is contained in:
parent
b27b4f1491
commit
2088b78872
@ -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,
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user