[education/rkward] rkward/rbackend: Allow more time for handshake.

Thomas Friedrichsmeier null at kde.org
Sat Apr 30 20:24:01 BST 2022


Git commit 79ac10c9613189fee88e1cba13e1ca68467cbc5b by Thomas Friedrichsmeier.
Committed on 30/04/2022 at 19:23.
Pushed by tfry into branch 'master'.

Allow more time for handshake.

This may be particularly important on Windows, as QProcess::waitForStarted(), does not appear to wait until everything is actually loaded.

M  +1    -1    rkward/rbackend/rkfrontendtransmitter.cpp

https://invent.kde.org/education/rkward/commit/79ac10c9613189fee88e1cba13e1ca68467cbc5b

diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index 40701dc7..1815e7e0 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -132,7 +132,7 @@ void RKFrontendTransmitter::run () {
 	if (!backend->waitForStarted()) {
 		handleTransmissionError(i18n("The backend executable could not be started. Error message was: %1", backend->errorString()));
 	} else {
-		waitForCanReadLine(backend, 3000);
+		waitForCanReadLine(backend, 15000);
 		token = QString::fromLocal8Bit(backend->readLine()).trimmed();
 		backend->closeReadChannel(QProcess::StandardError);
 		backend->closeReadChannel(QProcess::StandardOutput);


More information about the rkward-tracker mailing list