Check database enabled before releasing PID lock file
This commit is contained in:
1 file changed
+3
-1
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user