Updated dependencies

This commit is contained in:
AlphaX-Projects
2024-06-29 15:01:36 +02:00
parent 44b4b08117
commit 533df9f2b8
2 changed files with 23 additions and 19 deletions

View File

@@ -576,14 +576,18 @@ public class Controller extends Thread {
} else if (!blockMinter.isAlive()) {
LOGGER.debug("Block minter is running? {}", blockMinter.isAlive());
blockMinter.shutdown();
TimeUnit.SECONDS.sleep(10);
try {
// Wait 10 seconds before restart
TimeUnit.SECONDS.sleep(10);
// Start new block minter thread
LOGGER.info("Restarting block minter");
blockMinter.start();
} catch (Exception e) {
} catch (InterruptedException e) {
// Couldn't start new block minter thread
LOGGER.info("Starting block minter failed {}", e);
throw new RuntimeException(e);
}
}
}
@@ -2024,5 +2028,4 @@ public class Controller extends Thread {
public StatsSnapshot getStatsSnapshot() {
return this.stats;
}
}