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
This commit is contained in:
Vadim Zeitlin
2009-01-19 13:55:55 +00:00
parent d3b9f782ef
commit fa00c4e3ba

View File

@@ -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)