mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
removed thread
This commit is contained in:
parent
8680bce5fc
commit
16cc20a603
10 changed files with 25 additions and 95 deletions
|
|
@ -254,14 +254,12 @@ ReturnMessage::ReturnCode ServerSocket::cmdListGames(const QList<QVariant> ¶
|
|||
QStringList result;
|
||||
while (gameListIterator.hasNext()) {
|
||||
ServerGame *tmp = gameListIterator.next();
|
||||
tmp->mutex->lock();
|
||||
result << QString("%1|%2|%3|%4|%5|%6").arg(tmp->gameId)
|
||||
.arg(tmp->description)
|
||||
.arg(tmp->password == "" ? 0 : 1)
|
||||
.arg(tmp->getPlayerCount())
|
||||
.arg(tmp->maxPlayers)
|
||||
.arg(tmp->creator->PlayerName);
|
||||
tmp->mutex->unlock();
|
||||
}
|
||||
remsg->sendList(result);
|
||||
return ReturnMessage::ReturnOk;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue