Skip to content

Commit 7456692

Browse files
committed
dgram: partially revert 18d457b
Revert "dgram: call send callback asynchronously" partially, since the fix is now done in libuv. Refs: nodejs#1313 Refs: libuv/libuv#371
1 parent 85b1802 commit 7456692

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/dgram.js

Lines changed: 1 addition & 4 deletions
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)