Fixed a command packet order issue
This commit is contained in:
@@ -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"};
|
||||
|
||||
Reference in New Issue
Block a user