From fdb333d154e63ebb819c92ac955ee27adcf2c79f Mon Sep 17 00:00:00 2001 From: Sergey Mikolaitis Date: Fri, 28 Jan 2022 12:17:14 +0300 Subject: [PATCH] Fix Monitor.Enter in finally --- src/Avalonia.OpenGL/Egl/EglContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.OpenGL/Egl/EglContext.cs b/src/Avalonia.OpenGL/Egl/EglContext.cs index 58137dfff06..bc517c3e273 100644 --- a/src/Avalonia.OpenGL/Egl/EglContext.cs +++ b/src/Avalonia.OpenGL/Egl/EglContext.cs @@ -82,7 +82,7 @@ public IDisposable MakeCurrent(EglSurface surface) finally { if(!success) - Monitor.Enter(_lock); + Monitor.Exit(_lock); } }