Reorder peer deletion when deleteing a user (#1191)

This commit is contained in:
Misha Bragin
2023-10-03 16:46:58 +02:00
committed by GitHub
parent e26ec0b937
commit 35bc493cc3
5 changed files with 85 additions and 103 deletions

View File

@@ -118,11 +118,7 @@ func (m *TimeBasedAuthSecretsManager) SetupRefresh(peerID string) {
},
}
log.Debugf("sending new TURN credentials to peer %s", peerID)
err := m.updateManager.SendUpdate(peerID, &UpdateMessage{Update: update})
if err != nil {
log.Errorf("error while sending TURN update to peer %s %v", peerID, err)
// todo maybe continue trying?
}
m.updateManager.SendUpdate(peerID, &UpdateMessage{Update: update})
}
}
}()