aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/UserChannelPersistence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/UserChannelPersistence.cs')
-rw-r--r--Ryujinx.HLE/HOS/UserChannelPersistence.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/UserChannelPersistence.cs b/Ryujinx.HLE/HOS/UserChannelPersistence.cs
index 62f28fee..13e7364f 100644
--- a/Ryujinx.HLE/HOS/UserChannelPersistence.cs
+++ b/Ryujinx.HLE/HOS/UserChannelPersistence.cs
@@ -31,7 +31,9 @@ namespace Ryujinx.HLE.HOS
public byte[] Pop()
{
- return _userChannelStorages.Pop();
+ _userChannelStorages.TryPop(out byte[] result);
+
+ return result;
}
public bool IsEmpty => _userChannelStorages.Count == 0;