mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-19 12:53:25 +01:00
Delete download queue entry only if it contains the client.
This commit is contained in:
parent
3dff73965e
commit
66eff922d8
@ -144,8 +144,10 @@ void OutgoingDataCreator::SendDataToClients(pb::remote::Message* msg) {
|
||||
if (client->isDownloader()) {
|
||||
if (client->State() != QTcpSocket::ConnectedState) {
|
||||
clients_->removeAt(clients_->indexOf(client));
|
||||
delete download_queue_.value(client);
|
||||
download_queue_.remove(client);
|
||||
if (download_queue_.contains(client)) {
|
||||
delete download_queue_.value(client);
|
||||
download_queue_.remove(client);
|
||||
}
|
||||
delete client;
|
||||
}
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user