This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

dgram: add socket.fd compatibility hack to dgram_uv.js

  • Loading branch information...
bnoordhuis committed Aug 24, 2011
1 parent 11e3cfc commit bba432f00e0513faa124cdb0606fa050663e63ca
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/dgram_uv.js
View
@@ -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);
@@ -287,6 +288,7 @@ Socket.prototype._stopReceiving = function() {
this._handle.onmessage = null;
this._handle.recvStop();
this._receiving = false;
+ this.fd = null; // compatibility hack
};

0 comments on commit bba432f

Please sign in to comment.