Skip to content

Commit b5cd2f0

Browse files
saghulbnoordhuis
authored andcommitted
dgram: partially revert 18d457b
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]>
1 parent aa33db3 commit b5cd2f0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/dgram.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,7 @@ function afterSend(err) {
332332
if (err) {
333333
err = exceptionWithHostPort(err, 'send', this.address, this.port);
334334
}
335-
var self = this;
336-
setImmediate(function() {
337-
self.callback(err, self.length);
338-
});
335+
this.callback(err, this.length);
339336
}
340337

341338

0 commit comments

Comments
 (0)