mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Don't process file events if AE_FILE_EVENTS isn't set. (#11428)
All current usage of the function are correct, but in the future it might change.
This commit is contained in:
parent
c0d7226274
commit
5b102e2339
5
src/ae.c
5
src/ae.c
@ -403,6 +403,11 @@ int aeProcessEvents(aeEventLoop *eventLoop, int flags)
|
||||
* some event fires. */
|
||||
numevents = aeApiPoll(eventLoop, tvp);
|
||||
|
||||
/* Don't process file events if not requested. */
|
||||
if (!(flags & AE_FILE_EVENTS)) {
|
||||
numevents = 0;
|
||||
}
|
||||
|
||||
/* After sleep callback. */
|
||||
if (eventLoop->aftersleep != NULL && flags & AE_CALL_AFTER_SLEEP)
|
||||
eventLoop->aftersleep(eventLoop);
|
||||
|
Loading…
Reference in New Issue
Block a user