Browse files

Fix missing first parameter for BinaryClient

Adding the missing first parameter used by BinaryClient for new instance
creation.
  • Loading branch information...
1 parent 714d054 commit 282f3564b046299c0017a9a8353c7232a0dae87d @Ifnot Ifnot committed Feb 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/client.js
View
2 lib/client.js
@@ -10,7 +10,7 @@ var BinaryStream = require('./stream').BinaryStream;
// end node
function BinaryClient(socket, options) {
- if (!(this instanceof BinaryClient)) return new BinaryClient(options);
+ if (!(this instanceof BinaryClient)) return new BinaryClient(socket, options);
EventEmitter.call(this);

0 comments on commit 282f356

Please sign in to comment.