Skip to content

Commit

Permalink
Fix ws close
Browse files Browse the repository at this point in the history
  • Loading branch information
whs-dot-hk committed Jun 4, 2024
1 parent eccb0aa commit 54761c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transports/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ impl WsServerTask {
log::warn!("Unsubscribing from non-existent subscription with id {:?}", id);
}
}
None => {}
None => {
sender.close().await.expect("Fail to close WS")
}
},
res = receiver.next() => match res {
Some(Ok(data)) => {
Expand Down

0 comments on commit 54761c4

Please sign in to comment.