Skip to content
Browse files

make output of port at start be conditional on successful binding... …

…otherwise the failure is silenced
  • Loading branch information...
1 parent 7ffb656 commit c8c1d92125dca25b52d30622cf6b1efa019b96b6 @joeyAghion joeyAghion committed Mar 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/subway.js
View
2 lib/subway.js
@@ -7,7 +7,7 @@ var Subway = function() {
}
Subway.prototype.start = function () {
- console.log('Subway started on port %s', this.app.address().port);
+ if (this.app.address()) console.log('Subway started on port %s', this.app.address().port);
this.io = io.listen(this.app);
this.io.sockets.on('connection', function(socket) {

0 comments on commit c8c1d92

Please sign in to comment.
Something went wrong with that request. Please try again.