Send bye when disconnecting from cluster

half-duplex
Phil Taylor 2022-10-28 20:04:32 +01:00
rodzic 3a07830d47
commit bf340e7790
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
}
}
}