mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 14:45:41 +12:00
Derp
This commit is contained in:
parent
1cf8af98c2
commit
0eeff3535f
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ void Kernel::switchToNextThread() {
|
|||
void Kernel::rescheduleThreads() {
|
||||
std::optional<int> newThreadIndex = getNextThread();
|
||||
|
||||
if (newThreadIndex.has_value()) {
|
||||
if (newThreadIndex.has_value() && newThreadIndex.value() != currentThreadIndex) {
|
||||
threads[currentThreadIndex].status = ThreadStatus::Ready;
|
||||
switchThread(newThreadIndex.value());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue