mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +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;
|
||||
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…
x
Reference in New Issue
Block a user