[#2643] Routine.execute(Configuration) should restore the original
routine state after execution
This commit is contained in:
parent
472c68cbb3
commit
58811ae3e7
@ -222,9 +222,15 @@ public abstract class AbstractRoutine<T> extends AbstractQueryPart implements Ro
|
||||
@Override
|
||||
public final int execute(Configuration c) {
|
||||
|
||||
// Ensure that all depending Attachables are attached
|
||||
attach(c);
|
||||
return execute();
|
||||
// Ensure that all depending Attachables are attached
|
||||
Configuration previous = configuration();
|
||||
try {
|
||||
attach(c);
|
||||
return execute();
|
||||
}
|
||||
finally {
|
||||
attach(previous);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user