1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-15 11:25:20 +00:00

Add a setting to the timeout delay.

This commit is contained in:
2017-08-07 09:22:11 -07:00
parent 40bdbd1948
commit b8f8c4486a
2 changed files with 30 additions and 2 deletions

View File

@@ -129,7 +129,9 @@ public class AbacusController implements PluginListener {
*/
private final Runnable TIMER_RUNNABLE = () -> {
try {
Thread.sleep(30 * 1000);
Configuration abacusConfig = abacus.getConfiguration();
if(abacusConfig.getComputationDelay() != 0)
Thread.sleep((long) (abacusConfig.getComputationDelay() * 1000));
} catch (InterruptedException e) {
e.printStackTrace();
}