From 8b59df7b9b89ff897d1259130da5d393d815be82 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Feb 2016 14:38:59 +0300 Subject: Clear timer function after auto remove timer ended. --- src/common/timer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common') diff --git a/src/common/timer.c b/src/common/timer.c index 5c83928ef..e7a57481a 100644 --- a/src/common/timer.c +++ b/src/common/timer.c @@ -491,6 +491,7 @@ int do_timer(int64 tick) default: case TIMER_ONCE_AUTODEL: timer_data[tid].type = 0; + timer_data[tid].func = NULL; if (free_timer_list_pos >= free_timer_list_max) { free_timer_list_max += 256; RECREATE(free_timer_list,int,free_timer_list_max); -- cgit v1.2.3-60-g2f50