break incase the connection with the server failed instead of retrying over and over

This commit is contained in:
Godmode Galactus 2023-04-05 15:03:30 +02:00
parent 6d2c368fde
commit 3241818cba
No known key found for this signature in database
GPG Key ID: A04142C71ABB0DEA
1 changed files with 3 additions and 3 deletions

View File

@ -150,14 +150,14 @@ impl ActiveConnection {
Ok(stream) => stream,
Err(e) => {
warn!("error opening a unistream for {} error {}", identity, e);
continue;
break;
}
}
},
Err(e) => {
// validator no longer accepting connection
trace!("Could not reconnect to {} because of error {}", identity, e);
continue;
break;
}
}
} else {
@ -187,7 +187,7 @@ impl ActiveConnection {
},
Err(e) => {
warn!("Could not connect to {} because of error {}", identity, e);
continue;
break;
}
}