Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
REEF RuntimeClock.close() method that is supposed to perform a graceful shutdown of the event loop, contains the following code:
this.schedule.clear(); this.schedule.add(new StopTime(findAcceptableStopTime()));
The problem is that findAcceptableStopTime() searches the schedule for the last client alarm - when the schedule has been cleared already.
We need to schedule StopTime event without clearing the schedule to allow graceful shutdown, but close the clock so no events will be scheduled after it.