summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qsymbiansocketengine.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-01-25 13:37:45 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2011-02-01 11:32:03 (GMT)
commit54692812331d24939a0263a1625702670503c17a (patch)
tree1479ec6382be4a594dd47371e2a3eead3811216d /src/network/socket/qsymbiansocketengine.cpp
parentb36097693f9be745e8da550ea872fd1cda8d7d3a (diff)
downloadQt-54692812331d24939a0263a1625702670503c17a.zip
Qt-54692812331d24939a0263a1625702670503c17a.tar.gz
Qt-54692812331d24939a0263a1625702670503c17a.tar.bz2
Suppress warning for an expected error
QTcpServer calls accept repeatedly until it fails. So the KErrWouldBlock is an expected error - ignore this so warnings are only emitted for unexpected errors. Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/socket/qsymbiansocketengine.cpp')
-rw-r--r--src/network/socket/qsymbiansocketengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/socket/qsymbiansocketengine.cpp b/src/network/socket/qsymbiansocketengine.cpp
index 8ded9ac..bee034e 100644
--- a/src/network/socket/qsymbiansocketengine.cpp
+++ b/src/network/socket/qsymbiansocketengine.cpp
@@ -743,7 +743,8 @@ int QSymbianSocketEngine::accept()
User::WaitForRequest(status);
if (status.Int()) {
blankSocket.Close();
- qWarning("QSymbianSocketEnginePrivate::nativeAccept() - error %d", status.Int());
+ if (status != KErrWouldBlock)
+ qWarning("QSymbianSocketEnginePrivate::nativeAccept() - error %d", status.Int());
return -1;
}