mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
docs(desktop): explain archive send teardown
Co-authored-by: Wren <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@buzz.block.builderlab.xyz> Signed-off-by: Wren <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -470,6 +470,9 @@ async fn run_connection(
|
||||
// Await the bounded archive channel to push back on the
|
||||
// socket read loop instead. Finite catalog requests are
|
||||
// fulfilled above and never enter this channel.
|
||||
// Because this await is outside the session-cancel select,
|
||||
// teardown depends on `run_sync` dropping its receiver; moving
|
||||
// ownership or spawning that teardown can strand the socket loop.
|
||||
let sender = session.archive_events.lock().await.clone();
|
||||
if let Some(sender) = sender {
|
||||
let _ = sender
|
||||
|
||||
Reference in New Issue
Block a user