Skip to content

Commit

Permalink
hotfix: leave match slot leads to ghost player
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueRou committed Mar 2, 2024
1 parent fa305ed commit 19eaf06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/objects/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,10 @@ def leave_match(self) -> None:
return

slot = self.match.get_slot(self)
assert slot is not None
# assert slot is not None
if slot is None:
log(f"{self} has no slot in his match, why?", Ansi.RED)
return

if slot.status == SlotStatus.locked:
# player was kicked, keep the slot locked.
Expand Down

0 comments on commit 19eaf06

Please sign in to comment.