mirror of
https://github.com/HexCardGames/HexDeck.git
synced 2026-11-08 15:12:25 +01:00
fix(backend): fix crash when trying to update player data concurrently
This commit is contained in:
1 parent
d4f194b146
commit
a4a26f04d4
4 files changed
+31
No files matched your search
@@ -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