Skip to content

Commit

Permalink
core callback waits until listening has started.
Browse files Browse the repository at this point in the history
  • Loading branch information
deestan committed Mar 25, 2015
1 parent b5a613b commit 034ed0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core.js
Expand Up @@ -79,8 +79,8 @@ module.exports = function init(config, callback) {
app.use(currentUser);

// start
server.listen(config.port);

callback && callback(null, server);
server.listen(config.port, function listening() {
callback(null, server);
});
});
};

0 comments on commit 034ed0f

Please sign in to comment.