summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/socket/qlocalsocket/socketprocess/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/network/socket/qlocalsocket/socketprocess/main.cpp')
-rw-r--r--tests/auto/network/socket/qlocalsocket/socketprocess/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/network/socket/qlocalsocket/socketprocess/main.cpp b/tests/auto/network/socket/qlocalsocket/socketprocess/main.cpp
index 3f2c8abec4..272e837ac5 100644
--- a/tests/auto/network/socket/qlocalsocket/socketprocess/main.cpp
+++ b/tests/auto/network/socket/qlocalsocket/socketprocess/main.cpp
@@ -83,9 +83,10 @@ bool runClient()
socket.connectToServer(serverName, QLocalSocket::ReadWrite);
if (socket.waitForConnected())
break;
- if (socket.error() == QLocalSocket::ServerNotFoundError) {
+ if (socket.error() == QLocalSocket::ServerNotFoundError
+ || socket.error() == QLocalSocket::ConnectionRefusedError) {
if (connectTimer.elapsed() > 5000) {
- fprintf(stderr, "client: server not found. Giving up.\n");
+ fprintf(stderr, "client: server not found or connection refused. Giving up.\n");
return false;
}
printf("client: server not found. Trying again...\n");