Skip to content

Commit 09c13ae

Browse files
committed
fix: 修复漏洞
1 parent da6fe7e commit 09c13ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ async def syncFiles():
5454
await cluster.setupRouter()
5555
await cluster.listen(protocol == "https", Config.get("cluster.port"))
5656
await cluster.enable()
57+
cluster.want_enable = True
5758
if not cluster.enabled:
5859
raise asyncio.CancelledError
5960
scheduler.start()
@@ -65,6 +66,7 @@ async def syncFiles():
6566
except asyncio.CancelledError:
6667
logger.tinfo("main.info.stopping")
6768
if cluster.enabled:
69+
cluster.want_enable = False
6870
await cluster.disable()
6971
if cluster.socket:
7072
await cluster.socket.disconnect()

0 commit comments

Comments
 (0)