Fix occasional exceptions on SIGINT and SIGTERM
This commit is contained in:
1 parent
6f0e1d66ce
commit
1c9aa493c6
6 files changed
+95
-66
No files matched your search
+2
-1
@@ -46,7 +46,8 @@ function closeServer(timeout, callback): void {
|
||||
|
||||
const cb = callback;
|
||||
callback = null;
|
||||
cb();
|
||||
// Allow some time for connection close events to fire
|
||||
setTimeout(cb, 50);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user