mirror of https://github.com/qt/qtbase.git
Merge ecf7fbea15
into c7b3cb5f2a
This commit is contained in:
commit
ac2004e55b
|
@ -69,10 +69,12 @@ static gboolean socketNotifierSourceDispatch(GSource *source, GSourceFunc, gpoin
|
||||||
QEvent event(QEvent::SockAct);
|
QEvent event(QEvent::SockAct);
|
||||||
|
|
||||||
GSocketNotifierSource *src = reinterpret_cast<GSocketNotifierSource *>(source);
|
GSocketNotifierSource *src = reinterpret_cast<GSocketNotifierSource *>(source);
|
||||||
for (src->activeNotifierPos = 0; src->activeNotifierPos < src->pollfds.size();
|
src->activeNotifierPos = 0;
|
||||||
++src->activeNotifierPos) {
|
while (src->activeNotifierPos < src->pollfds.size()) {
|
||||||
GPollFDWithQSocketNotifier *p = src->pollfds.at(src->activeNotifierPos);
|
GPollFDWithQSocketNotifier *p = src->pollfds.at(src->activeNotifierPos);
|
||||||
|
|
||||||
|
++src->activeNotifierPos;
|
||||||
|
|
||||||
if ((p->pollfd.revents & p->pollfd.events) != 0)
|
if ((p->pollfd.revents & p->pollfd.events) != 0)
|
||||||
QCoreApplication::sendEvent(p->socketNotifier, &event);
|
QCoreApplication::sendEvent(p->socketNotifier, &event);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue