diff --git a/src/App/App.cs b/src/App/App.cs index 874fd3f5a..940473ca1 100644 --- a/src/App/App.cs +++ b/src/App/App.cs @@ -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)