[education/rkward] rkward/rbackend: Fix potential lag in command output

Thomas Friedrichsmeier null at kde.org
Sun Aug 31 13:51:37 BST 2025


Git commit 013be107de6c20c9936f58306ac5da5256315ce6 by Thomas Friedrichsmeier.
Committed on 31/08/2025 at 12:01.
Pushed by tfry into branch 'master'.

Fix potential lag in command output

M  +5    -3    rkward/rbackend/rkbackendtransmitter.cpp

https://invent.kde.org/education/rkward/-/commit/013be107de6c20c9936f58306ac5da5256315ce6

diff --git a/rkward/rbackend/rkbackendtransmitter.cpp b/rkward/rbackend/rkbackendtransmitter.cpp
index b1ed68d3c..e1ed5e3a0 100644
--- a/rkward/rbackend/rkbackendtransmitter.cpp
+++ b/rkward/rbackend/rkbackendtransmitter.cpp
@@ -137,9 +137,11 @@ void RKRBackendTransmitter::requestReceived(RBackendRequest *request) {
 }
 
 void RKRBackendTransmitter::flushOutput(bool force) {
-	for (int i = 0; i < current_sync_requests.size(); ++i) {
-		// Apparently, frontend isn't keeping up. Don't push the next piece of output, until it has processed the previous one!
-		if (current_sync_requests.at(i)->type == RBackendRequest::RCallbackType::Output) return;
+	if (!force) {
+		for (int i = 0; i < current_sync_requests.size(); ++i) {
+			// Apparently, frontend isn't keeping up. Don't push the next piece of output, until it has processed the previous one!
+			if (current_sync_requests.at(i)->type == RBackendRequest::RCallbackType::Output) return;
+		}
 	}
 
 	RKRBackend::this_pointer->fetchStdoutStderr(force);



More information about the rkward-tracker mailing list