diff options
-rw-r--r-- | src/estream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/estream.c b/src/estream.c index 0d8f522..a23d817 100644 --- a/src/estream.c +++ b/src/estream.c @@ -4982,7 +4982,7 @@ _gpgrt_poll (gpgrt_poll_t *fds, unsigned int nfds, int timeout) item->got_hup = 1; any = 1; } - if (item->want_read && (poll_fds[poll_nfds].revents & POLLIN)) + if (item->want_read && (poll_fds[poll_nfds].revents & (POLLIN|POLLHUP))) { item->got_read = 1; any = 1; |