diff --git a/src/Avalonia.FreeDesktop/DBusIme/DBusTextInputMethodBase.cs b/src/Avalonia.FreeDesktop/DBusIme/DBusTextInputMethodBase.cs index cfd28b29aa..87f0c1dba3 100644 --- a/src/Avalonia.FreeDesktop/DBusIme/DBusTextInputMethodBase.cs +++ b/src/Avalonia.FreeDesktop/DBusIme/DBusTextInputMethodBase.cs @@ -83,7 +83,7 @@ namespace Avalonia.FreeDesktop.DBusIme { await Task.Delay(Timeout.Infinite, linked.Token); } - catch (OperationCanceledException) when (!cancellationToken.IsCancellationRequested) + catch (OperationCanceledException) { } } else @@ -92,7 +92,7 @@ namespace Avalonia.FreeDesktop.DBusIme { await watcher.WaitForOwnerAsync(cancellationToken); } - catch (OperationCanceledException) when (!cancellationToken.IsCancellationRequested) + catch (OperationCanceledException) { } } owner = watcher.GetCurrentOwner();