Fix race condition in #2521

This commit is contained in:
Victor Shcherb 2016-05-08 23:27:54 +02:00
parent dd07571182
commit 8c3696b76b

View file

@ -767,7 +767,7 @@ public class GeneralRouter implements VehicleRouter {
parameters.add(param);
}
public Object eval(BitSet types, ParameterContext paramContext) {
public synchronized Object eval(BitSet types, ParameterContext paramContext) {
if (matches(types, paramContext)) {
return calcSelectValue(types, paramContext);
}