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

This commit is contained in:
antirez 2018-03-31 09:58:43 +02:00
parent d120cca2f5
commit e40b8e352e

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;