From 8c3d7568421b0e2f85a041cf724b40827eed0dd0 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 1 Aug 2020 12:36:43 +0200 Subject: [PATCH] Omitting the finished notification --- server/src/FileServerHandler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/FileServerHandler.cpp b/server/src/FileServerHandler.cpp index e9c853b..53ef8da 100644 --- a/server/src/FileServerHandler.cpp +++ b/server/src/FileServerHandler.cpp @@ -92,7 +92,6 @@ void FileServerHandler::callback_transfer_aborted(const std::shared_ptrproperties()[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_ptrfind_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);