diff options
author | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-05-21 16:14:08 (GMT) |
---|---|---|
committer | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-05-21 16:14:08 (GMT) |
commit | 16064f14487c81ce9e75962625885bf90c958db8 (patch) | |
tree | a34538ae9ea97e97a3adea2860f200697a5808ca /src/network/socket/qlocalserver.cpp | |
parent | 1a58ac0a27c6e006b9d86827d7e4b1000f56ae38 (diff) | |
download | Qt-16064f14487c81ce9e75962625885bf90c958db8.zip Qt-16064f14487c81ce9e75962625885bf90c958db8.tar.gz Qt-16064f14487c81ce9e75962625885bf90c958db8.tar.bz2 |
This is ugly hack to make snedData test case in qlocalsocket to pass.
This definitely has to be reviewed and changed, especially when generic
problem with socket notifier and sync operations on sockets is solved.
Diffstat (limited to 'src/network/socket/qlocalserver.cpp')
-rw-r--r-- | src/network/socket/qlocalserver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/socket/qlocalserver.cpp b/src/network/socket/qlocalserver.cpp index d6b1507..35701a7 100644 --- a/src/network/socket/qlocalserver.cpp +++ b/src/network/socket/qlocalserver.cpp @@ -276,6 +276,10 @@ QLocalSocket *QLocalServer::nextPendingConnection() if (d->pendingConnections.isEmpty()) return 0; QLocalSocket *nextSocket = d->pendingConnections.dequeue(); +#ifdef Q_OS_SYMBIAN + if(!d->socketNotifier) + return nextSocket; +#endif #ifndef Q_OS_WIN d->socketNotifier->setEnabled(d->pendingConnections.size() <= d->maxPendingConnections); |