Show a warning just in case an abnormal situation occurred.

This commit is contained in:
ANR2ME committed 2020-10-19 23:32:09 +07:00
1 parent 152f9a7e2b
commit f597382619
2 files changed
+12 -4

No files matched your search

+3 -1
View File
@@ -135,8 +135,10 @@ static void __ApctlState(u64 userdata, int cyclesLate) {
u32 error = 0;
SceUID waitID = __KernelGetWaitID(threadID, WAITTYPE_NET, error);
if (waitID == 0 || error != 0)
if (waitID == 0 || error != 0) {
WARN_LOG(SCENET, "sceNetApctl State WaitID(%i) on Thread(%i) already woken up? (error: %d)", uid, threadID, error);
return;
}
u32 waitVal = __KernelGetWaitValue(threadID, error);
if (error == 0) {