Skip to content

Commit

Permalink
Merge pull request AvaloniaUI#7455 from Mikolaytis/DeadlockFix
Browse files Browse the repository at this point in the history
[Deadlock] Fix Monitor.Enter in finally
  • Loading branch information
kekekeks authored and danwalmsley committed Feb 21, 2022
1 parent 859793b commit 7d771c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.OpenGL/Egl/EglContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public IDisposable MakeCurrent(EglSurface surface)
finally
{
if(!success)
Monitor.Enter(_lock);
Monitor.Exit(_lock);
}
}

Expand Down

0 comments on commit 7d771c8

Please sign in to comment.