Modules Timer API: fix wrong raxRemove() key argument.

This commit is contained in:
antirez 2018-03-31 09:58:43 +02:00
parent 2f7da0fd1a
commit 4c11bc6cf0

View File

@ -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;