Don't freak out on double stop.

This commit is contained in:
Simo Kinnunen
2014-05-01 17:23:21 +09:00
parent 5e48d84208
commit a51884a6f4
2 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,9 @@ module.exports = function(options) {
lifecycle.observe(function() {
log.info('Waiting for client connections to end')
return server.closeAsync()
.catch(function(err) {
// Okay
})
})
app.set('view engine', 'jade')