This commit is contained in:
WolverinDEV
2019-08-16 16:13:52 +02:00
parent bae6a56ed3
commit aa3de59652
14 changed files with 454 additions and 279 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ void TSServer::executeServerTick() {
size_t clientOnline = 0;
size_t queryOnline = 0;
for(const auto& conn : this->getClients()){
for(const auto& conn : client_list){
switch (conn->getType()){
case ClientType::CLIENT_TEAMSPEAK:
case ClientType::CLIENT_TEASPEAK:
@@ -98,7 +98,7 @@ void TSServer::executeServerTick() {
bool flag_update_spoken = this->spoken_time_timestamp + seconds(30) < system_clock::now();
system_clock::time_point tick_client_begin, tick_client_end = system_clock::now();
for(const auto& cl : this->getClients()) {
for(const auto& cl : client_list) {
tick_client_begin = tick_client_end;
if(cl->server != this) {
logError(this->getServerId(), "Got registered client, but client does not think hes bound to this server!");