Shutdown/interrupt the synchronizer as early as possible

This commit is contained in:
CalDescent 2022-02-02 09:13:49 +00:00
parent c9d5d996e5
commit 640bcdd504

View File

@ -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();