mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-05 00:56:42 +00:00
Fix Redis hanging
This commit is contained in:
@ -70,13 +70,6 @@ public class Plex extends JavaPlugin
|
||||
sqlConnection = new SQLConnection();
|
||||
mongoConnection = new MongoConnection();
|
||||
redisConnection = new RedisConnection();
|
||||
/*try {
|
||||
redisConnection.openPool();
|
||||
PlexLog.log("Successfully opened redis pool. Closing.");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
redisConnection.getJedis().close();*/
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -103,7 +96,7 @@ public class Plex extends JavaPlugin
|
||||
|
||||
if (redisConnection.isEnabled())
|
||||
{
|
||||
redisConnection.openPool();
|
||||
redisConnection.getJedis();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user