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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user