From bba432f00e0513faa124cdb0606fa050663e63ca Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 24 Aug 2011 02:42:49 +0200 Subject: [PATCH] dgram: add socket.fd compatibility hack to dgram_uv.js --- lib/dgram_uv.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dgram_uv.js b/lib/dgram_uv.js index c06b291..117f871 100644 --- a/lib/dgram_uv.js +++ b/lib/dgram_uv.js @@ -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 }; -- 2.7.4