diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-05-10 09:23:30 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-05-10 09:23:30 (GMT) |
commit | e81ba9b802d6a5439b672c847aa9741cf3229227 (patch) | |
tree | ebb7f1e5dbd83279ee60e51be9884a4e57122138 /src/corelib | |
parent | e75796dfa58652ec8998227d9f547eea990a0353 (diff) | |
parent | 19edac88af53eea7f733cabbaee77f9b725b7ea9 (diff) | |
download | Qt-e81ba9b802d6a5439b672c847aa9741cf3229227.zip Qt-e81ba9b802d6a5439b672c847aa9741cf3229227.tar.gz Qt-e81ba9b802d6a5439b672c847aa9741cf3229227.tar.bz2 |
Merge branch 'symbian-socket-engine' into staging-master
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/kernel/qeventdispatcher_symbian.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_symbian.cpp b/src/corelib/kernel/qeventdispatcher_symbian.cpp index e0eeb08..bd12726 100644 --- a/src/corelib/kernel/qeventdispatcher_symbian.cpp +++ b/src/corelib/kernel/qeventdispatcher_symbian.cpp @@ -1111,6 +1111,12 @@ bool QEventDispatcherSymbian::hasPendingEvents() void QEventDispatcherSymbian::registerSocketNotifier ( QSocketNotifier * notifier ) { + //check socket descriptor is usable + if (notifier->socket() >= FD_SETSIZE || notifier->socket() < 0) { + //same warning message as the unix event dispatcher for easy testing + qWarning("QSocketNotifier: Internal error"); + return; + } //note - this is only for "open C" file descriptors //for native sockets, an active object in the symbian socket engine handles this QSocketActiveObject *socketAO = new QSocketActiveObject(this, notifier); |