From bf340e7790a7bebf481ee0696c14d081c97e64a2 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Fri, 28 Oct 2022 20:04:32 +0100 Subject: [PATCH] Send bye when disconnecting from cluster --- cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster.cpp b/cluster.cpp index eaec4a2..dbae86b 100644 --- a/cluster.cpp +++ b/cluster.cpp @@ -77,6 +77,7 @@ void dxClusterClient::enableTcp(bool enable) else { if (tcpSocket != Q_NULLPTR) { + sendTcpData(QString("bye\n")); qInfo(logCluster()) << "Disconnecting tcpSocket() on:" << tcpPort; if (tcpCleanupTimer != Q_NULLPTR) { @@ -87,7 +88,6 @@ void dxClusterClient::enableTcp(bool enable) tcpSocket->disconnect(); delete tcpSocket; tcpSocket = Q_NULLPTR; - //emit deleteOldSpots(0); } } }