]> git.saurik.com Git - wxWidgets.git/commitdiff
return true from HasPending() if we have at least 1 event, not exactly 1 (closes...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Jan 2009 13:55:55 +0000 (13:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Jan 2009 13:55:55 +0000 (13:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/epolldispatcher.cpp

index b5b7a8cce637ea71d59cab3bed05f7d205170e79..75fa0909b4b4f0b5165752b7f596af3fd76e8e62 100644 (file)
@@ -194,7 +194,7 @@ wxEpollDispatcher::DoPoll(epoll_event *events, int numEvents, int timeout) const
 bool wxEpollDispatcher::HasPending() const
 {
     epoll_event event;
 bool wxEpollDispatcher::HasPending() const
 {
     epoll_event event;
-    return DoPoll(&event, 1, 0) == 1;
+    return DoPoll(&event, 1, 0) >= 1;
 }
 
 int wxEpollDispatcher::Dispatch(int timeout)
 }
 
 int wxEpollDispatcher::Dispatch(int timeout)