added error handling

This commit is contained in:
Paul 2023-04-10 14:10:56 +02:00
parent ae7738d45a
commit 5b47d9d257

View File

@ -68,7 +68,11 @@ pub async fn run() {
hostname: gethostname(true),
ipdata: ip_to_send,
};
send_to_ipbl_websocket(&mut wssocketrr, &ipe).await;
let status = send_to_ipbl_websocket(&mut wssocketrr, &ipe).await;
if !status {
ipeventws = Arc::clone(&ipeventtxarc);
wssocketrr = websocketinit(&ctxws, ipeventws).await;
}
}
continue
}