Skip to content

Commit

Permalink
Handle Lobby conflicts (#29 #31)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellochner committed Jul 6, 2023
1 parent 13f611c commit 8ef0cb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ await Lobbies.Instance.UpdatePlayerAsync(world.Id, player.Id, new UpdatePlayerOp
}
catch (Exception e)
{
if (e is NullReferenceException)
if (e is NullReferenceException || (e is LobbyServiceException && (e as LobbyServiceException).Reason == LobbyExceptionReason.LobbyConflict))
{
UpdateStatus(LocalizationUtility.Localize("network_status_lobby-error"), Color.red); // TODO: Bug with Lobby returning NullReferenceException?
}
Expand Down

0 comments on commit 8ef0cb4

Please sign in to comment.