Commit aa79c1f1 authored by antirez's avatar antirez
Browse files

ae.c: comment to explain why we have a useless maxId check.

parent 0b69c986
...@@ -303,7 +303,11 @@ static int processTimeEvents(aeEventLoop *eventLoop) { ...@@ -303,7 +303,11 @@ static int processTimeEvents(aeEventLoop *eventLoop) {
continue; 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) { if (te->id > maxId) {
te = te->next; te = te->next;
continue; continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment