[education/rkward] rkward/rbackend: Another debug check
Thomas Friedrichsmeier
null at kde.org
Sat Jul 30 16:46:28 BST 2022
Git commit e4a2aa8497bd36893558f67ef279f8abffd868c4 by Thomas Friedrichsmeier.
Committed on 30/07/2022 at 15:46.
Pushed by tfry into branch 'master'.
Another debug check
M +3 -2 rkward/rbackend/rkbackendtransmitter.cpp
https://invent.kde.org/education/rkward/commit/e4a2aa8497bd36893558f67ef279f8abffd868c4
diff --git a/rkward/rbackend/rkbackendtransmitter.cpp b/rkward/rbackend/rkbackendtransmitter.cpp
index f73f15ba..1dfd02e7 100644
--- a/rkward/rbackend/rkbackendtransmitter.cpp
+++ b/rkward/rbackend/rkbackendtransmitter.cpp
@@ -62,8 +62,9 @@ void RKRBackendTransmitter::run () {
connection->write ("\n");
connection->write (RKWARD_VERSION);
connection->write ("\n");
- connection->waitForBytesWritten ();
- RK_DEBUG(RBACKEND, DL_DEBUG, "Sending handshake complete");
+ bool ok = connection->waitForBytesWritten ();
+ RK_DEBUG(RBACKEND, DL_DEBUG, "Sending handshake complete, status: %s", ok ? "ok" : "fail");
+ if (!ok) handleTransmissionError("Could not write connection handshake: " + connection->errorString());
flushtimerid = startTimer (200); // calls flushOutput(false), periodically. See timerEvent()
More information about the rkward-tracker
mailing list