diff --git a/swarm/src/handler/one_shot.rs b/swarm/src/handler/one_shot.rs index e8cd03ebed8f..29ba45ab678b 100644 --- a/swarm/src/handler/one_shot.rs +++ b/swarm/src/handler/one_shot.rs @@ -213,7 +213,8 @@ where } ConnectionEvent::DialUpgradeError(DialUpgradeError { error, .. }) => { if self.pending_error.is_none() { - self.pending_error = Some(error); + log::debug!("DialUpgradeError: {error}"); + self.keep_alive = KeepAlive::No; } } ConnectionEvent::AddressChange(_) | ConnectionEvent::ListenUpgradeError(_) => {}