mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 14:40:38 +01:00
Check database enabled before releasing PID lock file
This commit is contained in:
parent
7dad00523f
commit
0808640ec0
1 changed files with 3 additions and 1 deletions
|
@ -315,7 +315,9 @@ class Server {
|
|||
}
|
||||
|
||||
onExit(exitEvent): void {
|
||||
DB.releasePidLock();
|
||||
if (config.DATABASE.ENABLED) {
|
||||
DB.releasePidLock();
|
||||
}
|
||||
process.exit(0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue