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
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
saveDefaultConfig();
|
saveDefaultConfig();
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user