Merge pull request #56 from miniway/master

fix a bug which unsubscribe doesn't work correctly
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