We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9a28f commit a3f5d50Copy full SHA for a3f5d50
lib/internal/child_process.js
@@ -627,13 +627,16 @@ function setupChannel(target, channel) {
627
var err = channel.writeUtf8String(req, string, handle);
628
629
if (err === 0) {
630
- if (handle && !this._handleQueue)
631
- this._handleQueue = [];
+ if (handle) {
+ if (!this._handleQueue)
632
+ this._handleQueue = [];
633
+ if (obj && obj.postSend)
634
+ obj.postSend(handle, options, target);
635
+ }
636
+
637
req.oncomplete = function() {
638
if (this.async === true)
639
control.unref();
- if (obj && obj.postSend)
- obj.postSend(handle, options, target);
640
if (typeof callback === 'function')
641
callback(null);
642
};
0 commit comments