We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31637a3 commit eb72511Copy full SHA for eb72511
lightning-net-tokio/src/lib.rs
@@ -424,7 +424,7 @@ const SOCK_WAKER_VTABLE: task::RawWakerVTable =
424
fn clone_socket_waker(orig_ptr: *const ()) -> task::RawWaker {
425
let new_waker = unsafe { Arc::from_raw(orig_ptr as *const mpsc::Sender<()>) };
426
let res = write_avail_to_waker(&new_waker);
427
- // Don't decrement the refound on new_waker:
+ // Don't decrement the refcount when dropping new_waker by turning it back `into_raw`.
428
let _ = Arc::into_raw(new_waker);
429
res
430
}
0 commit comments