Check database enabled before releasing PID lock file
This commit is contained in:
@@ -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