mirror of https://github.com/ericonr/sndio.git
dont call revents twice
This commit is contained in:
parent
7eb795bc19
commit
7027fdf46c
|
@ -226,7 +226,7 @@ dev_sio_revents(void *arg, struct pollfd *pfd)
|
||||||
|
|
||||||
events = sio_revents(d->sio.hdl, pfd);
|
events = sio_revents(d->sio.hdl, pfd);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
d->sio.events = sio_revents(d->sio.hdl, pfd);
|
d->sio.events = events;
|
||||||
#endif
|
#endif
|
||||||
return events;
|
return events;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue