Unverified Commit 7be86177 authored by Tian's avatar Tian Committed by GitHub
Browse files

Avoid spurious wakeup on deleted timer event (#11069)



Avoid spurious wakeup on deleted timer event
Co-authored-by: default avatarMadelyn Olson <madelyneolson@gmail.com>
parent 25ffa79b
......@@ -263,7 +263,7 @@ static int64_t usUntilEarliestTimer(aeEventLoop *eventLoop) {
aeTimeEvent *earliest = NULL;
while (te) {
if (!earliest || te->when < earliest->when)
if ((!earliest || te->when < earliest->when) && te->id != AE_DELETED_EVENT_ID)
earliest = te;
te = te->next;
}
......
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