From fff0213666bd71eadc65c1920fc65d030d1e4a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D1=80=D0=BE=D0=B4=D0=B8=D0=BD=20=D0=A0=D0=BE?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Sat, 26 Sep 2026 00:20:51 +0300 Subject: [PATCH] fix: keep lock file after cleanup so client always skips Server holds the lock even after cleanup. Client always sees the lock and skips bot startup. On crash, stale PID is detected and lock is cleaned up automatically. --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 9144e61..b7ce08d 100644 --- a/index.ts +++ b/index.ts @@ -283,7 +283,7 @@ async function runPlugin(ctx: any, options: any) { log("Plugin cleaning up...") eventController.abort() matrix.stop() - releaseLock() + // Don't release lock — keep it on disk so client always sees it } return cleanup