mirror of
https://github.com/fosrl/olm.git
synced 2026-02-07 21:46:40 +00:00
Fix peer names clearing
This commit is contained in:
@@ -272,9 +272,6 @@ func (s *API) SetConnectionStatus(isConnected bool) {
|
|||||||
|
|
||||||
if isConnected {
|
if isConnected {
|
||||||
s.connectedAt = time.Now()
|
s.connectedAt = time.Now()
|
||||||
} else {
|
|
||||||
// Clear peer statuses when disconnected
|
|
||||||
s.peerStatuses = make(map[int]*PeerStatus)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user