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: #1313
Refs: libuv/libuv#371
PR-URL: #1889
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
saghul authored and bnoordhuis committed Jun 3, 2015
1 parent aa33db3 commit b5cd2f0
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 b5cd2f0

Please sign in to comment.