should fix small memory leak

This commit is contained in:
ajgeiss0702
2021-10-23 09:57:17 -07:00
parent a72e3f67c1
commit 751882f9d7
3 changed files with 10 additions and 0 deletions
@@ -155,6 +155,7 @@ public class EventHandlerImpl implements EventHandler {
if((pos <= 1 && server.getServerNames().contains(player.getServerName())) || main.getConfig().getBoolean("remove-player-on-server-switch")) {
server.removePlayer(player);
server.setLastSentTime(System.currentTimeMillis());
main.getQueueManager().getSendingAttempts().remove(queuePlayer);
}
}
@@ -643,4 +643,9 @@ public class QueueManagerImpl implements QueueManager {
sendingNowAntiSpam.remove(next);
}
}
@Override
public HashMap<QueuePlayer, Integer> getSendingAttempts() {
return sendingAttempts;
}
}