Clear timeout & message task on remove.

This commit is contained in:
DNx5 2016-02-20 09:35:40 +07:00
parent 27642dd82c
commit de3fb61e60

View File

@ -82,7 +82,11 @@ public class LimboCache {
*/
public void deleteLimboPlayer(String name) {
checkNotNull(name);
cache.remove(name.toLowerCase());
name = name.toLowerCase();
if (cache.containsKey(name)) {
cache.get(name).clearTask();
cache.remove(name);
}
}
/**