forked from Qortal/qortal
Shutdown/interrupt the synchronizer as early as possible
This commit is contained in:
parent
c9d5d996e5
commit
640bcdd504
@ -826,6 +826,9 @@ public class Controller extends Thread {
|
|||||||
if (!isStopping) {
|
if (!isStopping) {
|
||||||
isStopping = true;
|
isStopping = true;
|
||||||
|
|
||||||
|
LOGGER.info("Shutting down synchronizer");
|
||||||
|
Synchronizer.getInstance().shutdown();
|
||||||
|
|
||||||
LOGGER.info("Shutting down API");
|
LOGGER.info("Shutting down API");
|
||||||
ApiService.getInstance().stop();
|
ApiService.getInstance().stop();
|
||||||
|
|
||||||
@ -852,9 +855,6 @@ public class Controller extends Thread {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOGGER.info("Shutting down synchronizer");
|
|
||||||
Synchronizer.getInstance().shutdown();
|
|
||||||
|
|
||||||
// Export local data
|
// Export local data
|
||||||
LOGGER.info("Backing up local data");
|
LOGGER.info("Backing up local data");
|
||||||
this.exportRepositoryData();
|
this.exportRepositoryData();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user