mirror of https://mirror.osredm.com/root/redis.git
Modules Timer API: fix wrong raxRemove() key argument.
This commit is contained in:
parent
2f7da0fd1a
commit
4c11bc6cf0
|
@ -4073,7 +4073,7 @@ int moduleTimerHandler(struct aeEventLoop *eventLoop, long long id, void *client
|
|||
ctx.module = timer->module;
|
||||
timer->callback(&ctx,timer->data);
|
||||
moduleFreeContext(&ctx);
|
||||
raxRemove(Timers,(unsigned char*)&ri.key,ri.key_len,NULL);
|
||||
raxRemove(Timers,(unsigned char*)ri.key,ri.key_len,NULL);
|
||||
zfree(timer);
|
||||
} else {
|
||||
next_period = expiretime-now;
|
||||
|
|
Loading…
Reference in New Issue