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:
parent
bf61b1ef1f
commit
fff0213666
2
index.ts
2
index.ts
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue