mirror of
https://github.com/HexCardGames/HexDeck.git
synced 2025-09-05 11:18:38 +02:00
fix(backend): fix crash when trying to update player data concurrently
This commit is contained in:
@ -87,6 +87,7 @@ func JoinRoom(room *types.Room, requestedUsername string) *types.Player {
|
||||
Connection: types.WebsocketConnection{
|
||||
IsConnected: false,
|
||||
},
|
||||
Mutex: &sync.Mutex{},
|
||||
}
|
||||
player.ResetInactivity()
|
||||
room.AppendPlayer(player)
|
||||
|
Reference in New Issue
Block a user