forked from j62/ctbrec
1
0
Fork 0

Make sure the httpTimeout is at least 10 secs

This commit is contained in:
0xboobface 2018-10-24 17:46:06 +02:00
parent 3a181d61a8
commit a4fd3034a8
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ public class Config {
try(FileInputStream fin = new FileInputStream(configFile); Buffer buffer = new Buffer()) {
BufferedSource source = buffer.readFrom(fin);
settings = adapter.fromJson(source);
settings.httpTimeout = Math.max(settings.httpTimeout, 10_000);
}
} else {
LOG.error("Config file does not exist. Falling back to default values.");