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:
Andreas 2013-08-24 21:24:01 +02:00
parent b6dd3f9a01
commit 3210d016d6
1 changed files with 2 additions and 2 deletions

View File

@ -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) {