mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-28 12:35:40 +01:00
Catch task cancellation of App.cs syncs
This commit is contained in:
parent
c27d427799
commit
8d33d8f216
@ -145,6 +145,11 @@ namespace Bit.App
|
|||||||
}
|
}
|
||||||
attempt++;
|
attempt++;
|
||||||
}
|
}
|
||||||
|
catch(Exception e) when(e is TaskCanceledException || e is OperationCanceledException)
|
||||||
|
{
|
||||||
|
Debug.WriteLine("Cancellation exception.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
} while(attempt <= 1);
|
} while(attempt <= 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -178,8 +183,17 @@ namespace Bit.App
|
|||||||
}
|
}
|
||||||
attempt++;
|
attempt++;
|
||||||
}
|
}
|
||||||
|
catch(Exception e) when(e is TaskCanceledException || e is OperationCanceledException)
|
||||||
|
{
|
||||||
|
Debug.WriteLine("Cancellation exception.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
} while(attempt <= 1);
|
} while(attempt <= 1);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.WriteLine("Not connected.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void Logout(string logoutMessage)
|
private async void Logout(string logoutMessage)
|
||||||
|
Loading…
Reference in New Issue
Block a user