mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-21 14:50:26 -08:00
server crash fix
This commit is contained in:
@@ -73,6 +73,7 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
|
||||
while (users.contains(tempName) || userExists(tempName))
|
||||
tempName = name + "_" + QString::number(++i);
|
||||
name = tempName;
|
||||
data->setName(name);
|
||||
}
|
||||
|
||||
session->setUserInfo(data);
|
||||
|
||||
Reference in New Issue
Block a user