Fixed a command packet order issue

This commit is contained in:
WolverinDEV
2019-07-21 14:56:53 +02:00
parent a5e545afeb
commit c9e257270f
5 changed files with 15 additions and 4 deletions
@@ -3313,8 +3313,12 @@ CommandResult ConnectedClient::handleCommandFTGetFileList(Command &cmd) {
}
if (fileList[0].has("name")) {
this->sendCommand(fileList);
if (this->getExternalType() == CLIENT_TEAMSPEAK) this->sendCommand(fileListFinished);
if(dynamic_cast<VoiceClient*>(this)) {
dynamic_cast<VoiceClient*>(this)->sendCommand0(fileList, false, true); /* We need to process this directly else the order could get shuffeled up! */
this->sendCommand(fileListFinished);
} else {
this->sendCommand(fileList);
}
return CommandResult::Success;
} else {
return {findError("database_empty_result"), "empty"};