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

This commit is contained in:
Pierre Krieger authored and GitHub committed 2021-05-03 17:18:35 +00:00
1 parent 2675741a09
commit 747beffe70
1 file changed
+1
@@ -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, .. }) => {