mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 00:38:04 +01:00
Continue to poll for config changes after startup.
This commit is contained in:
committed by
Jon Chambers
parent
b413f665d8
commit
426e6923ac
@@ -73,13 +73,15 @@ public class DynamicConfigurationManager {
|
||||
}
|
||||
|
||||
new Thread(() -> {
|
||||
try {
|
||||
retrieveDynamicConfiguration().ifPresent(configuration::set);
|
||||
} catch (Throwable t) {
|
||||
logger.warn("Error retrieving dynamic configuration", t);
|
||||
}
|
||||
while (true) {
|
||||
try {
|
||||
retrieveDynamicConfiguration().ifPresent(configuration::set);
|
||||
} catch (Throwable t) {
|
||||
logger.warn("Error retrieving dynamic configuration", t);
|
||||
}
|
||||
|
||||
Util.sleep(5000);
|
||||
Util.sleep(5000);
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user