Fixed Memory Leak
This commit is contained in:
parent
5603aca69c
commit
27d8493177
@ -58,6 +58,10 @@ public class RediSkript extends JavaPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
public void SetRedisManager(RedisManager rm)
|
||||
{
|
||||
this.rm = rm;
|
||||
}
|
||||
@Override
|
||||
public void onEnable() {
|
||||
saveDefaultConfig();
|
||||
|
@ -249,7 +249,7 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable {
|
||||
this.RedisService.shutdown();
|
||||
this.RedisService = null;
|
||||
this.RedisReconnector = null;
|
||||
|
||||
plugin.SetRedisManager(new RedisManager(plugin));
|
||||
}
|
||||
public void reload() {
|
||||
this.shutdown();
|
||||
|
Loading…
Reference in New Issue
Block a user