mirror of
https://github.com/bitwarden/android.git
synced 2024-12-21 00:31:58 +03:00
Catch task cancellation of App.cs syncs
This commit is contained in:
parent
c27d427799
commit
8d33d8f216
1 changed files with 14 additions and 0 deletions
|
@ -145,6 +145,11 @@ namespace Bit.App
|
|||
}
|
||||
attempt++;
|
||||
}
|
||||
catch(Exception e) when(e is TaskCanceledException || e is OperationCanceledException)
|
||||
{
|
||||
Debug.WriteLine("Cancellation exception.");
|
||||
break;
|
||||
}
|
||||
} while(attempt <= 1);
|
||||
}
|
||||
else
|
||||
|
@ -178,8 +183,17 @@ namespace Bit.App
|
|||
}
|
||||
attempt++;
|
||||
}
|
||||
catch(Exception e) when(e is TaskCanceledException || e is OperationCanceledException)
|
||||
{
|
||||
Debug.WriteLine("Cancellation exception.");
|
||||
break;
|
||||
}
|
||||
} while(attempt <= 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.WriteLine("Not connected.");
|
||||
}
|
||||
}
|
||||
|
||||
private async void Logout(string logoutMessage)
|
||||
|
|
Loading…
Reference in a new issue