don't reload an already loaded package

This commit is contained in:
Grahame Grieve 2020-08-12 14:45:49 +10:00
parent 9e422a1a2e
commit cef25b4bf0
1 changed files with 3 additions and 0 deletions

View File

@ -420,6 +420,9 @@ public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerCon
if (progress) {
System.out.println("Load Package "+pi.name()+"#"+pi.version());
}
if (loadedPackages.contains(pi.id()+"#"+pi.version())) {
return 0;
}
loadedPackages.add(pi.id()+"#"+pi.version());