Fix singleton lock of NotificationEventHandler

This commit is contained in:
Thog 2019-06-28 16:46:54 +02:00
commit 8f82e663a3
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6

View file

@ -4,7 +4,8 @@ namespace Ryujinx.HLE.HOS.Services.Friend
{ {
public sealed class NotificationEventHandler public sealed class NotificationEventHandler
{ {
private static NotificationEventHandler instance = null; private static NotificationEventHandler instance = null;
private static object instanceLock = new object();
private INotificationService[] _registry; private INotificationService[] _registry;
@ -67,7 +68,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
{ {
get get
{ {
lock (instance) lock (instanceLock)
{ {
if (instance == null) if (instance == null)
{ {