new timer during handling timer_event doesn't set correctly

timer_event can add a new timer during iteration
the new timer must be handled correctly
Merge pull request #57 from miniway/master

ew timer during handling timer_event doesn't set correctly