Fix orphan extension processes bug

Issue happens after an exception occurs and existing sessions fail to
finish within the timeout period.
This commit is contained in:
Zaid Abdulla committed 2017-07-17 13:44:49 -07:00
1 parent d74c56f182
commit 4be709a61b
2 files changed
+29 -10

No files matched your search

+3 -1
View File
@@ -41,7 +41,9 @@ server = null
exit = () ->
setTimeout(() ->
process.exit(1)
extensions.killAll(() ->
process.exit(1)
)
, 30000).unref()
cluster.worker?.disconnect()