Add support for extionsions in auth expressions

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2019-06-05 00:17:36 -07:00
1 parent e26fffa761
commit f21ce3053a
4 files changed
+83 -33

No files matched your search

+5 -1
View File
@@ -9,6 +9,7 @@ import * as logger from "../lib/logger";
import * as cluster from "../lib/cluster";
import * as server from "../lib/server";
import { listener } from "../lib/ui";
import * as extensions from "../lib/extensions";
import * as db from "../lib/ui/db";
import * as db2 from "../lib/db";
import * as cache from "../lib/cache";
@@ -23,11 +24,14 @@ function exitWorkerGracefully(): void {
db.disconnect();
db2.disconnect();
cache.disconnect();
extensions.killAll();
cluster.worker.disconnect();
}
function exitWorkerUngracefully(): void {
process.exit(1);
extensions.killAll().then(() => {
process.exit(1);
});
}
if (!cluster.worker) {