(VITA) libco: Fix small bug
This commit is contained in:
parent
5ff25ca6ae
commit
5be5ce8416
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue