Browse Source

Rethrow layout exceptions (#13189)

Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
pull/13295/head
Julien Lebosquain 3 years ago
committed by GitHub
parent
commit
a5d5880e2e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Avalonia.Base/Media/MediaContext.cs

6
src/Avalonia.Base/Media/MediaContext.cs

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Threading;
using Avalonia.Layout;
using Avalonia.Rendering;
using Avalonia.Rendering.Composition;
@ -90,9 +91,10 @@ internal partial class MediaContext : ICompositorScheduler
{
priority = DispatcherPriority.Input;
}
_nextRenderOp = _dispatcher.InvokeAsync(_render, priority);
var renderOp = new DispatcherOperation(_dispatcher, priority, _render, throwOnUiThread: true);
_nextRenderOp = renderOp;
_dispatcher.InvokeAsyncImpl(renderOp, CancellationToken.None);
}
/// <summary>

Loading…
Cancel
Save