mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
feat: retry client auth delete while api is unreachable
This commit is contained in:
@ -141,8 +141,8 @@ func (cm *ClientManager) LogoutClient(userID string) {
|
||||
|
||||
go func() {
|
||||
if !strings.HasPrefix(userID, "anonymous-") {
|
||||
if err := client.DeleteAuth(); err != nil {
|
||||
// TODO: Retry if the request failed.
|
||||
for client.DeleteAuth() == ErrAPINotReachable {
|
||||
cm.log.Warn("Logging out client failed because API was not reachable, retrying...")
|
||||
}
|
||||
}
|
||||
client.ClearData()
|
||||
|
||||
Reference in New Issue
Block a user