Omitting the finished notification
This commit is contained in:
parent
97cf371362
commit
8c3d756842
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user