Skip to content

Commit

Permalink
[Fix] Bug - unchanged files was loaded twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Kulich committed Mar 17, 2022
1 parent baeec5f commit f28e837
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public static void updateContextsIfNecessary(SPipesScriptManager scriptManager)
if (isKeepUpdated()) {
LOG.warn("Updating contexts which is not thread safe -- don't use in in production environment.");
OntologyDocumentManager ontoDocManager = OntoDocManager.getInstance();
List<String> globalScripts = ContextLoaderHelper.registerGlobalScripts(ontoDocManager);
OntoDocManager.setReloadFiles(true);
List<String> globalScripts = ContextLoaderHelper.registerGlobalScripts(ontoDocManager);
scriptManager.reloadScripts(globalScripts);
}
}
Expand Down

0 comments on commit f28e837

Please sign in to comment.