= Updated to mostly mitigate threading issue

This commit is contained in:
Matthew Cech
2019-06-30 00:42:08 -07:00
parent c4bc3e41d7
commit c837e2f190
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -66,7 +66,10 @@ public class Config
GlobalLog.log("File updated at " + monitoredFile.path);
buildConfigFile(monitoredFile.path.toString());
// Re-register all commands now that we've updated the config
// Re-register all commands now that we've updated the config.
// Before we do that tho, sync off anything that needs syncing.
// TODO: This is not thread safe.
DatabaseManager.instance.upkeep();
CommandManager.instance.registerAllCommands();
});
}