Io: Change async thread priority if running.

Really thought I'd already done this, must've made a mistake...
Fixes #12400.
This commit is contained in:
Unknown W. Brackets 2019-10-20 10:26:37 -07:00
parent 4065fae262
commit f63daf8185
5 changed files with 33 additions and 11 deletions

View file

@ -1973,6 +1973,10 @@ static int sceIoChangeAsyncPriority(int id, int priority) {
return hleLogError(SCEIO, error, "bad file descriptor");
}
if (asyncThreads[id] && !asyncThreads[id]->Stopped()) {
asyncThreads[id]->ChangePriority(priority);
}
asyncParams[id].priority = priority;
return hleLogSuccessI(SCEIO, 0);
}