mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
Update error message
This commit is contained in:
@@ -74,7 +74,7 @@ func (p *PeersUpdateManager) closeChannel(peerID string) {
|
|||||||
if ch, ok := p.peerChannels.LoadAndDelete(peerID); ok {
|
if ch, ok := p.peerChannels.LoadAndDelete(peerID); ok {
|
||||||
channel, ok := ch.(UpdateChannel)
|
channel, ok := ch.(UpdateChannel)
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Errorf("could not cast to chan *UpdateMessage")
|
log.Errorf("could not cast to UpdateChannel")
|
||||||
}
|
}
|
||||||
p.len.Add(-1)
|
p.len.Add(-1)
|
||||||
close(channel)
|
close(channel)
|
||||||
|
|||||||
Reference in New Issue
Block a user