Fix Redis hanging

This commit is contained in:
2022-02-04 13:30:05 -06:00
parent c93bd4fd2c
commit 140f298018
5 changed files with 41 additions and 15 deletions

View File

@ -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
{