mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 05:08:03 +01:00
Explicitly make the dynamic config worker a daemon thread.
This commit is contained in:
committed by
Jon Chambers
parent
3298db8683
commit
3a17a7c98f
@@ -72,7 +72,7 @@ public class DynamicConfigurationManager {
|
||||
this.notifyAll();
|
||||
}
|
||||
|
||||
new Thread(() -> {
|
||||
final Thread workerThread = new Thread(() -> {
|
||||
while (true) {
|
||||
try {
|
||||
retrieveDynamicConfiguration().ifPresent(configuration::set);
|
||||
@@ -82,7 +82,10 @@ public class DynamicConfigurationManager {
|
||||
|
||||
Util.sleep(5000);
|
||||
}
|
||||
}).start();
|
||||
}, "DynamicConfigurationManagerWorker");
|
||||
|
||||
workerThread.setDaemon(true);
|
||||
workerThread.start();
|
||||
}
|
||||
|
||||
private Optional<DynamicConfiguration> retrieveDynamicConfiguration() throws JsonProcessingException {
|
||||
|
||||
Reference in New Issue
Block a user