Exit main process after too many exceptions

This commit is contained in:
Zaid Abdulla committed 2018-01-11 06:20:25 -08:00
1 parent 2f276c7ce2
commit 521907fa7d
2 files changed
+30 -6

No files matched your search

+1 -3
View File
@@ -70,13 +70,11 @@ exit = () ->
)
, 30000).unref()
cluster.worker?.disconnect()
closeServer(20000, () ->
db.disconnect()
cache.disconnect()
extensions.killAll()
logger.close()
cluster.worker?.disconnect()
)