From: Vadim Zeitlin Date: Mon, 19 Jan 2009 13:55:55 +0000 (+0000) Subject: return true from HasPending() if we have at least 1 event, not exactly 1 (closes... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fa00c4e3bae8bf7127a5b43dbf68695c00ee2f94 return true from HasPending() if we have at least 1 event, not exactly 1 (closes #10397) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/epolldispatcher.cpp b/src/unix/epolldispatcher.cpp index b5b7a8cce6..75fa0909b4 100644 --- a/src/unix/epolldispatcher.cpp +++ b/src/unix/epolldispatcher.cpp @@ -194,7 +194,7 @@ wxEpollDispatcher::DoPoll(epoll_event *events, int numEvents, int timeout) const bool wxEpollDispatcher::HasPending() const { epoll_event event; - return DoPoll(&event, 1, 0) == 1; + return DoPoll(&event, 1, 0) >= 1; } int wxEpollDispatcher::Dispatch(int timeout)