Skip to content

Commit

Permalink
[api] Worker.start calls back with socket path
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Dec 9, 2011
1 parent 7be6917 commit d8b81dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/forever/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ Worker.prototype.start = function (cb) {
if (err) {
return cb && cb(err);
}
self._socket.listen(sock, cb);
self._socket.listen(sock, function () {
//
// `listening` listener doesn't take error as the first parameter
//
cb && cb(null, sock);
});
});
};

0 comments on commit d8b81dd

Please sign in to comment.