after calling aeSetDontWait from beforesleep, aeProcessEvent may be still wait once (#12068)
The code in aeProcessEvent was testing AE_DONT_WAIT flag at the wrong time.
The flag is set by by beforeSleep, but was was tested before calling beforeSleep,
which would result in aeProcessEvent waiting when it shouldn't have, impacting TLS's HasPendingData.
Co-authored-by:
Oran Agra <oran@redislabs.com>
Please register or sign in to comment