summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
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/net/ops.rs
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/net/ops.rs')
-rw-r--r--ext/net/ops.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/net/ops.rs b/ext/net/ops.rs
index b7459a347..942afc55f 100644
--- a/ext/net/ops.rs
+++ b/ext/net/ops.rs
@@ -621,7 +621,9 @@ where
let lookup_rv = lookup_fut.or_cancel(cancel_handle).await;
if let Some(cancel_rid) = cancel_rid {
- state.borrow_mut().resource_table.close(cancel_rid).ok();
+ if let Ok(res) = state.borrow_mut().resource_table.take_any(cancel_rid) {
+ res.close();
+ }
};
lookup_rv?