Omitting the finished notification

This commit is contained in:
WolverinDEV 2020-08-01 12:36:43 +02:00
parent 97cf371362
commit 8c3d756842

View File

@ -92,7 +92,6 @@ void FileServerHandler::callback_transfer_aborted(const std::shared_ptr<transfer
client->properties()[property::CLIENT_MONTH_BYTES_DOWNLOADED] += -bytes_left;
}
ts::command_builder notify{"notifystatusfiletransfer"};
notify.put_unchecked(0, "clientftfid", transfer->client_transfer_id);
@ -191,6 +190,10 @@ void FileServerHandler::callback_transfer_finished(const std::shared_ptr<transfe
auto client = server->find_client_by_id(transfer->client_id);
if(!client || client->getUid() != transfer->client_unique_id) return;
if(client->getType() == ClientType::CLIENT_TEAMSPEAK)
return;
ts::command_builder notify{"notifystatusfiletransfer"};
notify.put_unchecked(0, "clientftfid", transfer->client_transfer_id);