diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-09-13 16:01:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 22:01:31 +0000 |
commit | 81d50e1b6685a12a4f43693e695073a97f79264b (patch) | |
tree | 9a9be134f1f37b11c8521bd1ff7a07d330b6f1a5 /ext/websocket/lib.rs | |
parent | 12a75e3b4328dd36a63799262b2e252f9fb9d58e (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/websocket/lib.rs')
-rw-r--r-- | ext/websocket/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs index 4b05131d9..479cae7ec 100644 --- a/ext/websocket/lib.rs +++ b/ext/websocket/lib.rs @@ -288,7 +288,9 @@ where }; if let Some(cancel_rid) = cancel_handle { - state.borrow_mut().resource_table.close(cancel_rid).ok(); + if let Ok(res) = state.borrow_mut().resource_table.take_any(cancel_rid) { + res.close(); + } } let mut state = state.borrow_mut(); |