Fix occasional exceptions on SIGINT and SIGTERM

This commit is contained in:
Zaid Abdulla committed 2019-09-09 02:14:12 -07:00
1 parent 6f0e1d66ce
commit 1c9aa493c6
6 files changed
+95 -66

No files matched your search

+2 -1
View File
@@ -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);
});
}