mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
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;
|
ctx.module = timer->module;
|
||||||
timer->callback(&ctx,timer->data);
|
timer->callback(&ctx,timer->data);
|
||||||
moduleFreeContext(&ctx);
|
moduleFreeContext(&ctx);
|
||||||
raxRemove(Timers,(unsigned char*)&ri.key,ri.key_len,NULL);
|
raxRemove(Timers,(unsigned char*)ri.key,ri.key_len,NULL);
|
||||||
zfree(timer);
|
zfree(timer);
|
||||||
} else {
|
} else {
|
||||||
next_period = expiretime-now;
|
next_period = expiretime-now;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user