(VITA) libco: Fix small bug

This commit is contained in:
frangarcj 2016-09-06 09:26:25 +02:00
parent 5ff25ca6ae
commit 5be5ce8416
1 changed files with 5 additions and 4 deletions

View File

@ -79,11 +79,12 @@ void co_switch(cothread_t cothread)
}else{
SceFiber* theFiber = (SceFiber*)cothread;
if(co_active_ == (cothread_t)1){
co_active_ = cothread;
sceFiberRun(theFiber, 0, &argOnReturn);
}else{
co_active_ = cothread;
sceFiberSwitch(theFiber, 0, &argOnReturn);
}
co_active_ = cothread;
}
}