Browse Source
Fix mishandled cancellation in DBusTextInputMethodBase
pull/21527/head
deryaza
4 months ago
No known key found for this signature in database
GPG Key ID: 87EF85F77B33C869
1 changed files with
2 additions and
2 deletions
-
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(); |
|
|
|
|