Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix legacy substream fallback not working (#6826)
Browse files Browse the repository at this point in the history
* Fix legacy substream fallback not working

* Make it nicer
  • Loading branch information
tomaka authored Aug 5, 2020
1 parent 5ce8f09 commit 35f3ba4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions client/network/src/protocol/generic_proto/handler/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,15 +600,10 @@ impl ProtocolsHandler for NotifsHandler {
message
} => {
for (handler, _) in &mut self.out_handlers {
if handler.protocol_name() != &protocol_name[..] {
continue;
}

if handler.is_open() {
if handler.protocol_name() == &protocol_name[..] && handler.is_open() {
handler.send_or_discard(message);
continue 'poll_notifs_sink;
}

continue 'poll_notifs_sink;
}

self.legacy.inject_event(LegacyProtoHandlerIn::SendCustomMessage {
Expand Down

0 comments on commit 35f3ba4

Please sign in to comment.