diff --git a/index.js b/index.js index 2d46c71..c0b71ce 100644 --- a/index.js +++ b/index.js @@ -79,6 +79,7 @@ function createThreadInterceptor (opts) { inflights.delete(id) handler.onError(new Error(`Timeout while waiting from a response from ${url.hostname}`)) }, timeout) + handle.unref() } inflights.set(id, (err, res) => {