fix:客户端断开连接时,服务端处理websocket异常

This commit is contained in:
zy7y
2022-09-17 19:10:11 +08:00
parent 8e37bba724
commit 85a38a0840
6 changed files with 20 additions and 22 deletions

View File

@@ -1,5 +1,4 @@
import random
import time
def list_to_tree(
@@ -32,7 +31,6 @@ def list_to_tree(
def get_system_info():
"""获取系统信息"""
time.sleep(1)
return {
"usage": {
"cpu": f"{random.random() * 100: .2}",