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) {
isStopping = true;
LOGGER.info("Shutting down synchronizer");
Synchronizer.getInstance().shutdown();
LOGGER.info("Shutting down API");
ApiService.getInstance().stop();
@ -852,9 +855,6 @@ public class Controller extends Thread {
}
}
LOGGER.info("Shutting down synchronizer");
Synchronizer.getInstance().shutdown();
// Export local data
LOGGER.info("Backing up local data");
this.exportRepositoryData();