should fix small memory leak
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user