mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
remove duplicate fd lookup in aeProcessEvents (#3886)
Minor code cleanup.
This commit is contained in:
parent
a62801eb53
commit
bcc519fa7c
4
src/ae.c
4
src/ae.c
@ -400,9 +400,9 @@ int aeProcessEvents(aeEventLoop *eventLoop, int flags)
|
||||
eventLoop->aftersleep(eventLoop);
|
||||
|
||||
for (j = 0; j < numevents; j++) {
|
||||
aeFileEvent *fe = &eventLoop->events[eventLoop->fired[j].fd];
|
||||
int mask = eventLoop->fired[j].mask;
|
||||
int fd = eventLoop->fired[j].fd;
|
||||
aeFileEvent *fe = &eventLoop->events[fd];
|
||||
int mask = eventLoop->fired[j].mask;
|
||||
int fired = 0; /* Number of events fired for current fd. */
|
||||
|
||||
/* Normally we execute the readable event first, and the writable
|
||||
|
Loading…
Reference in New Issue
Block a user