Skip to content

Commit

Permalink
Merge pull request #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 Jan 28, 2022
2 parents 9dcb061 + fdb333d commit 4a17292
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 4a17292

Please sign in to comment.