Don't fail on disconnected WebSocket connection
This commit is contained in:
parent
85648c9466
commit
de26f513e9
1 changed files with 16 additions and 15 deletions
|
|
@ -123,6 +123,11 @@ async fn websocket(
|
|||
.context("Websocket send task failed")
|
||||
.map_err(server_error)??;
|
||||
|
||||
recv_task
|
||||
.await
|
||||
.context("Websocket receive task failed")
|
||||
.map_err(server_error)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue