mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
fix: make Redis subscriber thread a daemon
Should auto-terminate on shutdown now
This commit is contained in:
1 file changed
+3
-1
@@ -63,7 +63,9 @@ public class RedisBroker extends PluginMessageBroker {
|
|||||||
|
|
||||||
// Subscribe using a thread (rather than a task)
|
// Subscribe using a thread (rather than a task)
|
||||||
subscriber.enable(jedisPool);
|
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
|
@NotNull
|
||||||
|
|||||||
Reference in new issue
Block a user