Permalink
Browse files

dgram: remove stale code

  • Loading branch information...
1 parent 8509073 commit 61978f57e6c3cfd8aeb3cc22490d10b1ea09f473 @bnoordhuis bnoordhuis committed Oct 12, 2012
Showing with 0 additions and 9 deletions.
  1. +0 −9 lib/dgram.js
View
@@ -209,10 +209,6 @@ Socket.prototype.send = function(buffer,
function afterSend(status, handle, req, buffer) {
var self = handle.owner;
- // CHECKME socket's been closed by user, don't call callback?
- if (handle !== self._handle)
- void(0);
-
if (req.cb)
req.cb(null, buffer.length); // compatibility with dgram_legacy.js
}
@@ -320,11 +316,6 @@ Socket.prototype._stopReceiving = function() {
if (!this._receiving)
return;
- // Black hole messages coming in when reading is stopped. Libuv might do
- // this, but node applications (e.g. test/simple/test-dgram-pingpong) may
- // not expect it.
- this._handle.onmessage = noop;
-
this._handle.recvStop();
this._receiving = false;
this.fd = null; // compatibility hack

0 comments on commit 61978f5

Please sign in to comment.