kopia lustrzana https://gitlab.com/eliggett/wfview
Send bye when disconnecting from cluster
rodzic
3a07830d47
commit
bf340e7790
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue