Permalink
Browse files

Merge pull request #27 from mugami-ast/connect2-fix

Fix for issue #26 - worker: call address() on the callback context - not on the server
  • Loading branch information...
rauchg committed Apr 20, 2012
2 parents 4d3ce6f + 44a4bc2 commit f95c2c5c9a57a2149be7075e1ff3a234f4df2c0e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/worker.js
View
@@ -22,7 +22,7 @@ for (var i = 0, l = requires.length; i < l; i++) {
server.listen(function () {
process.send({
type: 'addr'
- , addr: server.address()
+ , addr: this.address()
});
});

0 comments on commit f95c2c5

Please sign in to comment.