Skip to content

Commit

Permalink
Fix rare online-mode/floodgate race condition then transferring betwe…
Browse files Browse the repository at this point in the history
…en limbos
  • Loading branch information
UserNugget committed Apr 24, 2024
1 parent 2868a69 commit 5379470
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/main/java/net/elytrium/limboauth/LimboAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,15 @@ private void sendPlayer(TaskEvent event, RegisteredPlayer registeredPlayer) {

switch (event.getResult()) {
case BYPASS: {
this.factory.passLoginLimbo(player);
this.cacheAuthUser(player);
try {
this.updateLoginData(player);
} catch (SQLException e) {
throw new SQLRuntimeException(e);
this.cacheAuthUser(player);
try {
this.updateLoginData(player);
} catch (SQLException e) {
throw new SQLRuntimeException(e);
}
} finally {
this.factory.passLoginLimbo(player);
}
break;
}
Expand Down

0 comments on commit 5379470

Please sign in to comment.