andreaulicna / 42_ft_transcendence

Surprise.
2 stars 0 forks source link

Prevent pong consumer from crashing if a user stays in room after disconnect #18

Open loudapet opened 1 week ago

loudapet commented 1 week ago

If not disconnected properly, sometimes a user might not be removed from a room and hangs there. Then, if is_player_in_match_room_already(self.id): triggers, which proceeds to disconnect (for some reason), and disconnect doesn't have match_group_name set up, so it crashes