fix error handling in websocket
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9187642172
commit
c681825efe
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user