Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Fix del Fix 240102b scheduler_schedule #12
Browse files Browse the repository at this point in the history
  • Loading branch information
jjak0b committed May 12, 2020
1 parent dc00677 commit e73058f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduler/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int scheduler_schedule( int b_force_switch ) {

int b_should_switch = b_force_switch || scheduler->b_force_switch || scheduler->running_p == NULL;

if( b_should_switch && emptyProcQ( &scheduler->ready_queue ) ) {
if( scheduler->running_p == NULL && emptyProcQ( &scheduler->ready_queue ) ) {
HALT();
}

Expand Down

0 comments on commit e73058f

Please sign in to comment.