Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failure to get RoomId in OnCloseGame callback #894

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

SapiensAnatis
Copy link
Owner

@SapiensAnatis SapiensAnatis commented Jun 23, 2024

There are some errors in the logs where the OnCloseGame callback of the StateManagerPlugin is failing because there is no RoomId property.

This appears to happen if a player joins a game and it closes instantly, typically due to connection issues. It seems in this case the code in OnCreateGame which would initialize the RoomId does not have a chance to run.

These headers are not required for the state manager or for Zena, and are only used for recording time attack clears in the main API (for requests originating from GameLogicPlugin). So the simplest thing to do is remove them.

There are some errors in the logs where the OnCloseGame callback of the
StateManagerPlugin is failing because there is no RoomId property.

This appears to happen if a player joins a game and it closes instantly,
typically due to connection issues. It seems in this case the code in
OnCreateGame which would initialize the RoomId does not have a chance to
run.

These headers are not required for the state manager or for Zena, and
are only used for recording time attack clears in GameLogicPlugin. So
the simplest thing to do is remove them.
@SapiensAnatis SapiensAnatis merged commit a750e71 into main Jun 23, 2024
1 check passed
@SapiensAnatis SapiensAnatis deleted the fix/roomid-error branch June 23, 2024 13:44
SapiensAnatis added a commit that referenced this pull request Jun 30, 2024
There are some errors in the logs where the OnCloseGame callback of the
StateManagerPlugin is failing because there is no RoomId property.

This appears to happen if a player joins a game and it closes instantly,
typically due to connection issues. It seems in this case the code in
OnCreateGame which would initialize the RoomId does not have a chance to
run.

These headers are not required for the state manager or for Zena, and
are only used for recording time attack clears in the main API (for
requests originating from GameLogicPlugin). So the simplest thing to do
is remove them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant