[education/rkward/testing/win_citest_timeout] rkward/rbackend: Make sure, connection is down, before closing server

Thomas Friedrichsmeier null at kde.org
Sun Oct 2 21:57:58 BST 2022


Git commit 6734d5fe9d1def37a2cc5babf2cc6fb636fb1f76 by Thomas Friedrichsmeier.
Committed on 02/10/2022 at 20:57.
Pushed by tfry into branch 'testing/win_citest_timeout'.

Make sure, connection is down, before closing server

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

https://invent.kde.org/education/rkward/commit/6734d5fe9d1def37a2cc5babf2cc6fb636fb1f76

diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index 5e232e25..e8106bdf 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -178,7 +178,8 @@ void RKFrontendTransmitter::run () {
 
 	if (!connection) {
 		RK_ASSERT (false);
-		return;
+	} else if (connection->state() != QLocalSocket::UnconnectedState) {
+		connection->abort();
 	}
 }
 


More information about the rkward-tracker mailing list