Skip to content

Commit cf3faf1

Browse files
committed
Merge remote-tracking branch 'origin/master' into lexnv/metrics
2 parents deb8b1a + 7612ec9 commit cf3faf1

File tree

1 file changed

+3
-0
lines changed
  • src/protocol/request_response

1 file changed

+3
-0
lines changed

src/protocol/request_response/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@ impl RequestResponseProtocol {
352352
async fn on_connection_closed(&mut self, peer: PeerId) {
353353
tracing::debug!(target: LOG_TARGET, ?peer, protocol = %self.protocol, "connection closed");
354354

355+
// Remove any pending outbound substreams for this peer.
356+
self.pending_outbound.retain(|_, context| context.peer != peer);
357+
355358
let Some(context) = self.peers.remove(&peer) else {
356359
tracing::error!(
357360
target: LOG_TARGET,

0 commit comments

Comments
 (0)