summaryrefslogtreecommitdiffstats
path: root/examples/remoteobjects/ssl/sslcppclient/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/remoteobjects/ssl/sslcppclient/main.cpp')
-rw-r--r--examples/remoteobjects/ssl/sslcppclient/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/remoteobjects/ssl/sslcppclient/main.cpp b/examples/remoteobjects/ssl/sslcppclient/main.cpp
index ff67d70..2c64965 100644
--- a/examples/remoteobjects/ssl/sslcppclient/main.cpp
+++ b/examples/remoteobjects/ssl/sslcppclient/main.cpp
@@ -109,8 +109,9 @@ private:
socketClient->setPeerVerifyMode(QSslSocket::VerifyPeer);
socketClient->connectToHostEncrypted(QStringLiteral("127.0.0.1"), 65511);
if (!socketClient->waitForEncrypted(-1)) {
- qFatal("Failed to connect to server %s",
+ qWarning("Failed to connect to server %s",
qPrintable(socketClient->errorString()));
+ exit(0);
}
return socketClient;
}