Make sure SongSender is deleted when client disconnects.
This commit is contained in:
parent
16b2ac547c
commit
0f1b29a523
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue