Skip to content

Commit

Permalink
Fixed close(fd) issue for Master without a server. Closes #89
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 10, 2011
1 parent 0c5cb90 commit a75ceb4
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 @@ -738,7 +738,7 @@ Master.prototype.acceptFd = function(){
Master.prototype._destroy = function(){
var self = this;
self._server.on('close', function(){
binding.close(self.fd);
if (self.fd) binding.close(self.fd);
self.emit('close');
process.nextTick(process.exit.bind(process));
}).close();
Expand Down

0 comments on commit a75ceb4

Please sign in to comment.