Fixed error spam and a memory leak

This commit is contained in:
WolverinDEV
2021-05-03 10:42:04 +02:00
parent 707ede7a6f
commit fb28e613cd
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -931,7 +931,7 @@ bool ConnectedClient::handleCommandFull(Command& cmd, bool disconnectOnFail) {
}
bool generateReturnStatus = false;
if(result.has_error() || this->getType() == ClientType::CLIENT_QUERY || this->getType() == ClientType::CLIENT_TEAMSPEAK){
if(result.has_error() || this->getType() == ClientType::CLIENT_QUERY){
generateReturnStatus = true;
} else if(cmd["return_code"].size() > 0) {
generateReturnStatus = !cmd["return_code"].string().empty();