Fixed Memory Leak

This commit is contained in:
abhiram 2020-12-03 16:06:10 +05:30
parent 5603aca69c
commit 27d8493177
2 changed files with 5 additions and 1 deletions

View File

@ -58,6 +58,10 @@ public class RediSkript extends JavaPlugin {
} }
} }
public void SetRedisManager(RedisManager rm)
{
this.rm = rm;
}
@Override @Override
public void onEnable() { public void onEnable() {
saveDefaultConfig(); saveDefaultConfig();

View File

@ -249,7 +249,7 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable {
this.RedisService.shutdown(); this.RedisService.shutdown();
this.RedisService = null; this.RedisService = null;
this.RedisReconnector = null; this.RedisReconnector = null;
plugin.SetRedisManager(new RedisManager(plugin));
} }
public void reload() { public void reload() {
this.shutdown(); this.shutdown();