removed unwraps on close socket

This commit is contained in:
Nickiel12 2024-03-27 17:06:13 -07:00
parent 8572d89103
commit 3609b9a848

View file

@ -30,8 +30,8 @@ impl SocketState {
fn close_websocket(&mut self) {
if let Some(ref mut x) = self.socket {
info!("closing websocket");
x.send_message(&Message::close()).unwrap();
x.shutdown().unwrap();
let _ = x.send_message(&Message::close());
let _ = x.shutdown();
self.socket = None;
}
}