Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an err.code check

  • Loading branch information...
commit b4b63509f03a61e12f8db98185a1b1d916435e27 1 parent f0ddead
@tj tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/master.js
View
2  lib/master.js
@@ -804,7 +804,7 @@ Master.prototype.startListening = function(shouldBind){
// remove unix domain socket
if ('string' == typeof this.port && shouldBind) {
fs.unlink(this.port, function(err){
- if ('ENOENT' != err.code) throw err;
+ if (err && 'ENOENT' != err.code) throw err;
startListening();
});
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.