2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 9bdcad8a authored by Benedikt Zoennchen's avatar Benedikt Zoennchen
Browse files

shutdown executor service for the parallel update scheme in the post loop method.

parent e9b47e53
Pipeline #194092 passed with stages
in 119 minutes and 49 seconds
......@@ -279,6 +279,7 @@ public class OptimalStepsModel implements MainModel, PotentialFieldModel {
@Override
public void postLoop(final double simTimeInSec) {
updateSchemeOSM.shutdown();
}
@Override
......
......@@ -117,4 +117,8 @@ public interface UpdateSchemeOSM extends DynamicElementRemoveListener<Pedestrian
topography.moveElement(pedestrian, from);
}
}
default void shutdown() {
}
}
......@@ -230,4 +230,9 @@ public class UpdateSchemeParallel implements UpdateSchemeOSM {
@Override
public void elementRemoved(Pedestrian element) {}
@Override
public void shutdown() {
executorService.shutdown();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment