fix error handling in websocket
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-11-24 21:16:07 +01:00
parent 9187642172
commit c681825efe

View File

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