]> git.deb.at Git - rhonda/impostor.git/commit
Clean up abandoned games on disconnect
authorminiduikboot <mini@duikbo.at>
Tue, 17 Dec 2024 21:08:23 +0000 (22:08 +0100)
committerminiduikboot <mini@duikbo.at>
Sun, 22 Dec 2024 16:02:56 +0000 (17:02 +0100)
commita7c37b6bcf560afd146ef3e36a8344ba7a9f6063
tree86b45f35176823beb1f464923e603a64a53ba242
parent792c9626e4169665fecf17a2edaaea1bfeb52a0c
Clean up abandoned games on disconnect

When a client disconnects without ever having joined a game, it leaves
behind an empty game on the server. Remove these when a player
disconnects.

Co-Authored-By: js6pak <me@6pak.dev>
src/Impostor.Server/Net/Client.cs
src/Impostor.Server/Net/Manager/GameManager.cs