diff options
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r-- | ext/http/01_http.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js index 2681edff8..8c4f08aab 100644 --- a/ext/http/01_http.js +++ b/ext/http/01_http.js @@ -70,11 +70,9 @@ // a generic `BadResource` error. Instead store this error and replace // those with it. this[connErrorSymbol] = error; - if (error instanceof BadResource) { - return null; - } else if (error instanceof Interrupted) { - return null; - } else if ( + if ( + error instanceof BadResource || + error instanceof Interrupted || StringPrototypeIncludes(error.message, "connection closed") ) { return null; |