mirror of https://github.com/adamdruppe/arsd.git
handle closed hting better
This commit is contained in:
parent
c76d26f01f
commit
cfcffbfca9
|
@ -3186,7 +3186,11 @@ struct EventLoopImpl {
|
||||||
SimpleWindow.processAllCustomEvents();
|
SimpleWindow.processAllCustomEvents();
|
||||||
} else {
|
} else {
|
||||||
auto obj = PosixFdReader.mapping[pfds[s].fd];
|
auto obj = PosixFdReader.mapping[pfds[s].fd];
|
||||||
obj.ready(pfds[s].revents);
|
if(pfds[s].revents & POLLNVAL) {
|
||||||
|
obj.dispose();
|
||||||
|
} else {
|
||||||
|
obj.ready(pfds[s].revents);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret--;
|
ret--;
|
||||||
|
|
Loading…
Reference in New Issue