summaryrefslogtreecommitdiff
path: root/ext/http
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-09-13 16:01:31 -0600
committerGitHub <noreply@github.com>2023-09-13 22:01:31 +0000
commit81d50e1b6685a12a4f43693e695073a97f79264b (patch)
tree9a9be134f1f37b11c8521bd1ff7a07d330b6f1a5 /ext/http
parent12a75e3b4328dd36a63799262b2e252f9fb9d58e (diff)
chore: bump deno_core and cargo update (#20480)
Bump deno_core, pulling in new rusty_v8. Requires some op2/deprecation fixes.
Diffstat (limited to 'ext/http')
-rw-r--r--ext/http/slab.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/http/slab.rs b/ext/http/slab.rs
index 4718aded1..7c48b87b6 100644
--- a/ext/http/slab.rs
+++ b/ext/http/slab.rs
@@ -46,7 +46,9 @@ impl HttpRequestBodyAutocloser {
impl Drop for HttpRequestBodyAutocloser {
fn drop(&mut self) {
- _ = self.1.borrow_mut().resource_table.close(self.0);
+ if let Ok(res) = self.1.borrow_mut().resource_table.take_any(self.0) {
+ res.close();
+ }
}
}