Skip to content

Commit

Permalink
Fixed an err.code check
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 23, 2011
1 parent f0ddead commit b4b6350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b4b6350

Please sign in to comment.