Please sign in to comment.
Testing and setting the delay to a minimum value needs to occur only
if delay is not zero, otherwise the timer is not turned off when it should be. Move the test and setting back inside the block that is only executed if delay > 0.
- Loading branch information...