Skip to content

Commit

Permalink
Update Networking/Sources/Networking/Peer.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Xiliang Chen <[email protected]>
  • Loading branch information
MacOMNI and xlc authored Nov 5, 2024
1 parent ba4d3ed commit 26a4da3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Networking/Sources/Networking/Peer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,7 @@ private struct PeerEventHandler<Handler: StreamHandler>: QuicEventHandler {
}
// Check if the connection is already reconnected
impl.reconnectStates.write { reconnectStates in
if reconnectStates[conn.remoteAddress] != nil {
reconnectStates[conn.remoteAddress] = nil
}
reconnectStates[conn.remoteAddress] = nil
}

if conn.initiatedByLocal {
Expand Down

0 comments on commit 26a4da3

Please sign in to comment.