summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-03 14:38:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-05 01:03:26 +0300
commit8b59df7b9b89ff897d1259130da5d393d815be82 (patch)
tree63f6c1ef1fc5e0f737ce82a11061015c327db323 /src/common
parentefdd2df5b9235cf530f062626aad13b4a5ec811f (diff)
downloadhercules-8b59df7b9b89ff897d1259130da5d393d815be82.tar.gz
hercules-8b59df7b9b89ff897d1259130da5d393d815be82.tar.bz2
hercules-8b59df7b9b89ff897d1259130da5d393d815be82.tar.xz
hercules-8b59df7b9b89ff897d1259130da5d393d815be82.zip
Clear timer function after auto remove timer ended.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/timer.c1
1 files changed, 1 insertions, 0 deletions
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);