fix of websocket error #10
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user