SCP: Properly cancel very long event waits
usecs_remaining must be zero to be sure that canceling is complete.
This commit is contained in:
parent
39c5217740
commit
0fc41cb3bd
1 changed files with 1 additions and 0 deletions
1
scp.c
1
scp.c
|
@ -10003,6 +10003,7 @@ if (nptr != QUEUE_LIST_END)
|
|||
nptr->time += (uptr->next) ? 0 : uptr->time;
|
||||
if (!uptr->next)
|
||||
uptr->time = 0;
|
||||
uptr->usecs_remaining = 0;
|
||||
if (sim_clock_queue != QUEUE_LIST_END)
|
||||
sim_interval = sim_clock_queue->time;
|
||||
else sim_interval = noqueue_time = NOQUEUE_WAIT;
|
||||
|
|
Loading…
Add table
Reference in a new issue