Skip to content

Commit

Permalink
Update channel.rs
Browse files Browse the repository at this point in the history
Fixed connect not backing off when a connection attempt failed
  • Loading branch information
guy176251 authored Oct 29, 2024
1 parent fcc89d8 commit e30407c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/client/transport/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ impl AsyncSecureChannel {

pub async fn connect(&self) -> Result<SecureChannelEventLoop, StatusCode> {
self.request_send.store(None);
let mut backoff = self.session_retry_policy.new_backoff();
loop {
let mut backoff = self.session_retry_policy.new_backoff();
match self.connect_no_retry().await {
Ok(event_loop) => {
break Ok(event_loop);
Expand Down

0 comments on commit e30407c

Please sign in to comment.