fix: make Redis subscriber thread a daemon

Should auto-terminate on shutdown now
This commit is contained in:
William committed 2024-08-22 13:32:56 +01:00
1 parent 7029b50a42
commit 0a5ad6b594
1 file changed
+3 -1
@@ -63,7 +63,9 @@ public class RedisBroker extends PluginMessageBroker {
// Subscribe using a thread (rather than a task)
subscriber.enable(jedisPool);
new Thread(subscriber::subscribe, "huskhomes:redis_subscriber").start();
final Thread thread = new Thread(subscriber::subscribe, "huskhomes:redis_subscriber");
thread.setDaemon(true);
thread.start();
}
@NotNull