We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2003990 commit ffd3becCopy full SHA for ffd3bec
lib/base.js
@@ -73,7 +73,8 @@ Base.prototype.setTimeout = function (n) {
73
} else {
74
this.start = Date.now()
75
this.timer = setTimeout(this.timeout.bind(this), n)
76
- this.timer.unref()
+ if (this.timer.unref)
77
+ this.timer.unref()
78
}
79
80
lib/spawn.js
@@ -135,5 +135,6 @@ Spawn.prototype.timeout = function (extra) {
135
this.proc.kill('SIGKILL')
136
137
}.bind(this), 1000)
138
- t.unref()
+ if (t.unref)
139
+ t.unref()
140
0 commit comments