Skip to content

Commit 59f875e

Browse files
author
martin-doyle
committed
Revert "Catch exception on server start"
This reverts commit f0e108a.
1 parent dc92295 commit 59f875e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

lib/server.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,6 @@ function Server(opts, callback) {
216216
var server = interfaces.serverFactory(iface, fallback, that);
217217
that.servers.push(server);
218218
server.maxConnections = iface.maxConnections || 10000000;
219-
220-
// Catch listen errors
221-
server.on('error', function (e) {
222-
that.logger.error('Error starting Mosca Server');
223-
that.emit('error', e);
224-
});
225219
server.listen(port, host, dn);
226220
}, done);
227221
},

0 commit comments

Comments
 (0)