Skip to content

Commit

Permalink
fix: Drop duplicate transmission of connection refusal
Browse files Browse the repository at this point in the history
Fixes an error introduced by d791c4c.
  • Loading branch information
aszepieniec committed Nov 28, 2024
1 parent d791c4c commit 2553959
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/connect_to_peers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,6 @@ where
.await?;

if let InternalConnectionStatus::Refused(refused_reason) = connection_status {
peer.send(PeerMessage::ConnectionStatus(
TransferConnectionStatus::Refused(refused_reason),
))
.await?;
warn!("Incoming connection refused: {:?}", refused_reason);
bail!("Refusing incoming connection. Reason: {:?}", refused_reason);
}
Expand Down

0 comments on commit 2553959

Please sign in to comment.