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.
This commit is contained in:
Бородин Роман 2026-09-26 00:20:51 +03:00
parent bf61b1ef1f
commit fff0213666
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ async function runPlugin(ctx: any, options: any) {
log("Plugin cleaning up...") log("Plugin cleaning up...")
eventController.abort() eventController.abort()
matrix.stop() matrix.stop()
releaseLock() // Don't release lock — keep it on disk so client always sees it
} }
return cleanup return cleanup