Fixed memory leak in ProfileSaveTask

This commit is contained in:
bm01 2012-06-25 14:36:02 +02:00
parent b8e9269488
commit 5057a8a7a3
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ Key:
- Removal - Removal
Version 1.3.10-dev Version 1.3.10-dev
+ = Fixed players never being removed from memory (memory leak)
Version 1.3.09 Version 1.3.09
+ Added compatibility with AntiCheat (Which I highly recommend to prevent cheating) + Added compatibility with AntiCheat (Which I highly recommend to prevent cheating)

View File

@ -15,7 +15,7 @@ public class ProfileSaveTask implements Runnable {
playerProfile.save(); playerProfile.save();
if (!playerProfile.getPlayer().isOnline()) { if (!playerProfile.getPlayer().isOnline()) {
Users.getProfiles().remove(playerProfile); Users.remove(playerProfile.getPlayerName());
} }
} }
} }