mirror of
https://github.com/HexCardGames/HexDeck.git
synced 2025-12-01 03:24:28 +01: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