Skip to content

Commit

Permalink
dgram: partially revert 18d457b
Browse files Browse the repository at this point in the history
Revert "dgram: call send callback asynchronously" partially, since the
fix is now done in libuv.

Refs: nodejs#1313
Refs: libuv/libuv#371
  • Loading branch information
saghul committed Jun 3, 2015
1 parent 85b1802 commit 7456692
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/dgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,7 @@ function afterSend(err) {
if (err) {
err = exceptionWithHostPort(err, 'send', this.address, this.port);
}
var self = this;
setImmediate(function() {
self.callback(err, self.length);
});
this.callback(err, this.length);
}


Expand Down

0 comments on commit 7456692

Please sign in to comment.