cnstll/ft_transcendAnce

[Bug] Error with invite to play if the requester of the game leaves the waiting room

Closed this issue · 0 comments

Describe the bug

If the requester of a game leaves the waiting room he is in a weird game state

Steps to reproduce

1-Invite a user 2 to play
2-You are redirected to the waiting room
3-Leave the waiting room
4-User 2 accepts the invitation of user1
5-If user1 goes to play he is redirected to the game but he can't play in it

Expected behavior

The user should be able to play or should lose by forfeiting

Environment

No response

OS

No response

Browser

None

Version

No response

Additional context

No response

Relevant log output

No response