Skip to content

Commit

Permalink
dgram: add socket.fd compatibility hack to dgram_uv.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Aug 24, 2011
1 parent 11e3cfc commit bba432f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/dgram_uv.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ function Socket(type, listener) {
this._receiving = false;
this._bound = false;
this.type = type;
this.fd = null; // compatibility hack

if (typeof listener === 'function')
this.on('message', listener);
Expand Down Expand Up @@ -287,6 +288,7 @@ Socket.prototype._stopReceiving = function() {
this._handle.onmessage = null;
this._handle.recvStop();
this._receiving = false;
this.fd = null; // compatibility hack
};


Expand Down

0 comments on commit bba432f

Please sign in to comment.