mirror of
https://github.com/localsend/localsend.git
synced 2026-08-07 07:14:52 +00:00
fix(webrtc): await status_tx.send before returning on selection-publish failure (#3212)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user