From 8f82e663a321bd12289787b879d54eccd865369d Mon Sep 17 00:00:00 2001 From: Thog Date: Fri, 28 Jun 2019 16:46:54 +0200 Subject: [PATCH] Fix singleton lock of NotificationEventHandler --- Ryujinx.HLE/HOS/Services/Friend/NotificationEventHandler.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Friend/NotificationEventHandler.cs b/Ryujinx.HLE/HOS/Services/Friend/NotificationEventHandler.cs index f297867665..83d8e3d23b 100644 --- a/Ryujinx.HLE/HOS/Services/Friend/NotificationEventHandler.cs +++ b/Ryujinx.HLE/HOS/Services/Friend/NotificationEventHandler.cs @@ -4,7 +4,8 @@ namespace Ryujinx.HLE.HOS.Services.Friend { public sealed class NotificationEventHandler { - private static NotificationEventHandler instance = null; + private static NotificationEventHandler instance = null; + private static object instanceLock = new object(); private INotificationService[] _registry; @@ -67,7 +68,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend { get { - lock (instance) + lock (instanceLock) { if (instance == null) {