Make sure SongSender is deleted when client disconnects.

This commit is contained in:
Andreas 2014-12-07 13:54:18 +01:00
parent 16b2ac547c
commit 0f1b29a523
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ RemoteClient::~RemoteClient() {
client_->close();
if (client_->state() == QAbstractSocket::ConnectedState)
client_->waitForDisconnected(2000);
song_sender_->deleteLater();
}
void RemoteClient::setDownloader(bool downloader) { downloader_ = downloader; }