Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4c11bc6c
Commit
4c11bc6c
authored
Mar 31, 2018
by
antirez
Browse files
Modules Timer API: fix wrong raxRemove() key argument.
parent
2f7da0fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
4c11bc6c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment