2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-08 16:10:26 +00:00

FIX mistake in pubsub listener as its resending spam to pubsub

This commit is contained in:
2022-06-29 18:11:19 +04:00
parent 08c4901f47
commit b3bc51b96f
3 changed files with 76 additions and 7 deletions

View File

@@ -21,7 +21,6 @@ public class PubSubListener implements Runnable {
@Override
public void run() {
boolean broken = false;
try (Jedis rsc = plugin.requestJedis()) {
try {
@@ -42,16 +41,11 @@ public class PubSubListener implements Runnable {
- redis.clients.jedis.exceptions.JedisConnectionException: JedisPubSub was not subscribed to a Jedis instance
*/
}
broken = true;
}
} catch (JedisConnectionException e) {
plugin.logWarn("PubSub error, attempting to recover in 5 secs.");
plugin.executeAsyncAfter(this, TimeUnit.SECONDS, 5);
}
if (broken) {
run();
}
}
public void addChannel(String... channel) {