fix of websocket error #10

Merged
paulbsd merged 3 commits from develop into master 2023-11-25 18:01:13 +01:00
Showing only changes of commit c681825efe - Show all commits

View File

@ -127,6 +127,9 @@ pub async fn send_to_ipbl_websocket(
} }
fn handle_websocket_error(ws: &mut WebSocket<MaybeTlsStream<TcpStream>>) -> bool { fn handle_websocket_error(ws: &mut WebSocket<MaybeTlsStream<TcpStream>>) -> bool {
ws.close(None).unwrap(); match ws.close(None) {
Ok(o) => {}
Err(e) => {}
};
return false; return false;
} }