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:
@ -28,6 +28,7 @@ func (serializable *SerializablePlayer) ToPlayer(cardDeckId int) types.Player {
|
||||
Permissions: serializable.Permissions,
|
||||
Connection: types.WebsocketConnection{IsConnected: false},
|
||||
Cards: cards,
|
||||
Mutex: &sync.Mutex{},
|
||||
}
|
||||
player.ResetInactivity()
|
||||
return player
|
||||
|
Reference in New Issue
Block a user