Skip to content

Commit

Permalink
Fix concurrent exception (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
RemainingToast committed May 11, 2021
1 parent 7b7c3e1 commit f964398
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private void moveVeteran(boolean canMoveRegular) {
}

private void connectPlayer(QueueType type) {
for (Entry<UUID, String> entry : type.getQueueMap().entrySet()) {
for (Entry<UUID, String> entry : new LinkedHashMap<>(type.getQueueMap()).entrySet()) {
ProxiedPlayer player = plugin.getProxy().getPlayer(entry.getKey());
if (player == null || !player.isConnected()) {
continue;
Expand Down

0 comments on commit f964398

Please sign in to comment.