Permalink
Browse files

fix to make .end() work for socketio connections, before it crashed b…

…ecause this.log was undefined
  • Loading branch information...
1 parent b1c02e1 commit d92a94ff0144875006addbba9c9eae24a26a765f @substack committed Jan 9, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −2 lib/stream_socketio.js
  2. +1 −1 package.json
View
@@ -93,8 +93,7 @@ module.exports = function (webserver, mount, ioOptions) {
stream.writable = true;
stream.write = client.send.bind(client);
- stream.end = stream.destroy
- = client.disconnect.bind(client.disconnect);
+ stream.end = stream.destroy = client.disconnect.bind(client);
client.on('message', stream.emit.bind(stream, 'data'));
client.on('error', stream.emit.bind(stream, 'error'));
View
@@ -1,6 +1,6 @@
{
"name" : "dnode",
- "version" : "0.9.5",
+ "version" : "0.9.6",
"description" : "freestyle RPC",
"main" : "./index.js",
"keywords" : [

0 comments on commit d92a94f

Please sign in to comment.