mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
Fix not restoring non-poisoned state (#7906)
This commit is contained in:
@@ -1674,9 +1674,10 @@ impl NetworkBehaviour for GenericProto {
|
||||
notifications_sink: replacement_sink,
|
||||
};
|
||||
self.events.push_back(NetworkBehaviourAction::GenerateEvent(event));
|
||||
*entry.into_mut() = PeerState::Enabled { connections };
|
||||
}
|
||||
|
||||
*entry.into_mut() = PeerState::Enabled { connections };
|
||||
|
||||
} else {
|
||||
// List of open connections wasn't empty before but now it is.
|
||||
if !connections.iter().any(|(_, s)| matches!(s, ConnectionState::Opening)) {
|
||||
|
||||
Reference in New Issue
Block a user