diff --git a/lib/roles/auth/ldap.js b/lib/roles/auth/ldap.js index f0466067..18169075 100644 --- a/lib/roles/auth/ldap.js +++ b/lib/roles/auth/ldap.js @@ -20,6 +20,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') diff --git a/lib/roles/auth/mock.js b/lib/roles/auth/mock.js index 12fe9d12..1ac36fff 100644 --- a/lib/roles/auth/mock.js +++ b/lib/roles/auth/mock.js @@ -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')