Removed unnecessary stream op pointer checks.
[silc.git] / lib / silcutil / unix / silcunixschedule.c
index cdbc2b69dcff2c406ad025fac291c586bf55a8dd..14fd31efd6c764ca0434b2bb8cb74f55c57f2bd1 100644 (file)
@@ -99,7 +99,7 @@ int silc_epoll(SilcSchedule schedule, void *context)
       epoll_ctl(internal->epfd, EPOLL_CTL_DEL, task->fd, &fds[i]);
       continue;
     }
-    if (fds[i].events & (EPOLLIN | EPOLLPRI | EPOLLHUP))
+    if (fds[i].events & (EPOLLIN | EPOLLPRI | EPOLLHUP | EPOLLERR))
       task->revents |= SILC_TASK_READ;
     if (fds[i].events & EPOLLOUT)
       task->revents |= SILC_TASK_WRITE;