summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/http/01_http.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js
index 91824b000..7db3fdbe8 100644
--- a/ext/http/01_http.js
+++ b/ext/http/01_http.js
@@ -42,7 +42,6 @@
Set,
SetPrototypeAdd,
SetPrototypeDelete,
- SetPrototypeHas,
SetPrototypeValues,
StringPrototypeIncludes,
StringPrototypeToLowerCase,
@@ -354,8 +353,7 @@
}
}
} finally {
- if (SetPrototypeHas(httpConn.managedResources, streamRid)) {
- SetPrototypeDelete(httpConn.managedResources, streamRid);
+ if (SetPrototypeDelete(httpConn.managedResources, streamRid)) {
core.close(streamRid);
}
}