fix(webrtc): await status_tx.send before returning on selection-publish failure (#3212)

This commit is contained in:
Checo
2026-08-01 20:34:48 +08:00
committed by GitHub
parent afd7663432
commit 9900953ae9
+1 -1
View File
@@ -492,7 +492,7 @@ pub async fn send_offer(
.is_err()
{
let error = "Could not publish selection";
let _ = status_tx.send(RTCStatus::Error(error.to_owned()));
let _ = status_tx.send(RTCStatus::Error(error.to_owned())).await;
return Err(anyhow::anyhow!(error));
}