Fix singleton lock of NotificationEventHandler
This commit is contained in:
parent
2d40c8a9ea
commit
8f82e663a3
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue