mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
ws socket worker: replace an expect with error return
This commit is contained in:
parent
892b77ca61
commit
569e437f7b
1 changed files with 1 additions and 1 deletions
|
|
@ -432,7 +432,7 @@ async fn run_stream_agnostic_connection<
|
|||
|
||||
race(reader_handle, writer_handle)
|
||||
.await
|
||||
.expect("reader/writer task should not be closed")
|
||||
.ok_or_else(|| anyhow::anyhow!("reader/writer task closed"))?
|
||||
}
|
||||
|
||||
struct ConnectionReader<S> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue