-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nil pointer dereference when consuming events (#48)
If an event is received after the internal timer waiting for it has elapsed, it should be placed into the pending events queue to be handled by the next WaitForSingleEvent invocation. However, the internal timer expiration callback does not reset the pending task list correctly, causing the event consumer to attempt to dereference an element of an empty list. This change adjusts the logic of the timer to completely eradicate the list from the pending event key map when it's empty, which matches the behavior of other orchestrator cleanup routines.
- Loading branch information
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters