potential fix for locking issues
This commit is contained in:
parent
7044ffda79
commit
c0172963d5
20 changed files with 112 additions and 141 deletions
|
@ -80,8 +80,6 @@ internal sealed class Endpoints(
|
|||
if (name.Length > 12) return TypedResults.BadRequest("name too long");
|
||||
|
||||
var player = playerService.GetOrAdd(name);
|
||||
return player != null
|
||||
? TypedResults.Ok(player.Name)
|
||||
: TypedResults.Unauthorized();
|
||||
return TypedResults.Ok(player.Name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue