diff --git a/src/joystick_loop.rs b/src/joystick_loop.rs index 97f2f05..fe0e2db 100644 --- a/src/joystick_loop.rs +++ b/src/joystick_loop.rs @@ -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; } }