Wait until socket is closed before destroying RemoteClient object. Otherwise the disconnect message is not sent.
(cherry picked from commit 6a61f8598d
)
This commit is contained in:
parent
b6dd3f9a01
commit
3210d016d6
|
@ -52,8 +52,8 @@ RemoteClient::RemoteClient(Application* app, QTcpSocket* client)
|
|||
|
||||
|
||||
RemoteClient::~RemoteClient() {
|
||||
client_->abort();
|
||||
delete client_;
|
||||
client_->close();
|
||||
client_->waitForDisconnected(2000);
|
||||
}
|
||||
|
||||
void RemoteClient::setDownloader(bool downloader) {
|
||||
|
|
Loading…
Reference in New Issue