This looks like a bug since it doesn't delete the timer.

What is this code for?  There's no comment.