As you set next_timer to -1 before, you need to check for next_timer != -1 now.