From 81d50e1b6685a12a4f43693e695073a97f79264b Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 13 Sep 2023 16:01:31 -0600 Subject: chore: bump deno_core and cargo update (#20480) Bump deno_core, pulling in new rusty_v8. Requires some op2/deprecation fixes. --- ext/http/slab.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/http') 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(); + } } } -- cgit v1.2.3