Check database enabled before releasing PID lock file
This commit is contained in:
parent
7dad00523f
commit
0808640ec0
@ -315,7 +315,9 @@ class Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onExit(exitEvent): void {
|
onExit(exitEvent): void {
|
||||||
DB.releasePidLock();
|
if (config.DATABASE.ENABLED) {
|
||||||
|
DB.releasePidLock();
|
||||||
|
}
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user