make sure that SQL steps are closed only once
@@ -50,8 +50,14 @@ public abstract class AbstractExecutionStep implements OExecutionStepInternal {
prev.ifPresent(p -> p.sendTimeout());
}
+ private boolean alreadyClosed = false;
+
@Override
public void close() {
+ if (alreadyClosed) {
+ return;
+ }
+ alreadyClosed = true;
prev.ifPresent(p -> p.close());
}
