Browse Source

Merge pull request #3477 from AvaloniaUI/fixes/osx-exception-swallowing-before-mainloop

Check if an exception was thrown before entering the mainloop.
pull/3482/head
Nikita Tsukanov 7 years ago
committed by GitHub
parent
commit
0452d4a785
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/Avalonia.Native/PlatformThreadingInterface.cs

1
src/Avalonia.Native/PlatformThreadingInterface.cs

@ -60,6 +60,7 @@ namespace Avalonia.Native
public void RunLoop(CancellationToken cancellationToken)
{
_exceptionDispatchInfo?.Throw();
var l = new object();
_exceptionCancellationSource = new CancellationTokenSource();

Loading…
Cancel
Save