added error handling
This commit is contained in:
parent
ae7738d45a
commit
5b47d9d257
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user