mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 15:16:47 +00:00
Continue to poll for config changes after startup.
This commit is contained in:
1 parent
b413f665d8
commit
426e6923ac
1 file changed
+8
-6
+8
-6
@@ -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