SCP: Properly cancel very long event waits

usecs_remaining must be zero to be sure that canceling is complete.
This commit is contained in:
Mark Pizzolato 2018-01-07 13:58:28 -08:00
parent 39c5217740
commit 0fc41cb3bd

1
scp.c
View file

@ -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;