Fix too generous error detection in behaviour.rs (#8717)

This commit is contained in:
Pierre Krieger
2021-05-03 19:18:35 +02:00
committed by GitHub
parent 2675741a09
commit 747beffe70
@@ -1703,6 +1703,7 @@ impl NetworkBehaviour for Notifications {
match self.peers.get_mut(&(source.clone(), set_id)) {
// Move the connection from `Closing` to `Closed`.
Some(PeerState::Incoming { connections, .. }) |
Some(PeerState::DisabledPendingEnable { connections, .. }) |
Some(PeerState::Disabled { connections, .. }) |
Some(PeerState::Enabled { connections, .. }) => {