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
ace780c0
Commit
ace780c0
authored
Apr 04, 2016
by
antirez
Browse files
ae.c: comment to explain why we have a useless maxId check.
parent
67b70a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae.c
View file @
ace780c0
...
...
@@ -303,7 +303,11 @@ static int processTimeEvents(aeEventLoop *eventLoop) {
continue
;
}
/* Don't process time events created by time events in this iteration. */
/* Make sure we don't process time events created by time events in
* this iteration. Note that this check is currently useless: we always
* add new timers on the head, however if we change the implementation
* detail, this check may be useful again: we keep it here for future
* defense. */
if
(
te
->
id
>
maxId
)
{
te
=
te
->
next
;
continue
;
...
...
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