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 {
|
else {
|
||||||
if (tcpSocket != Q_NULLPTR)
|
if (tcpSocket != Q_NULLPTR)
|
||||||
{
|
{
|
||||||
|
sendTcpData(QString("bye\n"));
|
||||||
qInfo(logCluster()) << "Disconnecting tcpSocket() on:" << tcpPort;
|
qInfo(logCluster()) << "Disconnecting tcpSocket() on:" << tcpPort;
|
||||||
if (tcpCleanupTimer != Q_NULLPTR)
|
if (tcpCleanupTimer != Q_NULLPTR)
|
||||||
{
|
{
|
||||||
|
@ -87,7 +88,6 @@ void dxClusterClient::enableTcp(bool enable)
|
||||||
tcpSocket->disconnect();
|
tcpSocket->disconnect();
|
||||||
delete tcpSocket;
|
delete tcpSocket;
|
||||||
tcpSocket = Q_NULLPTR;
|
tcpSocket = Q_NULLPTR;
|
||||||
//emit deleteOldSpots(0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue