View | Details | Raw Unified | Return to bug 39509
Collapse All | Expand All

(-)/Workspaces-JMeter/Jmeter/src/components/org/apache/jmeter/control/OnceOnlyController.java (-1 / +6 lines)
Lines 39-45 Link Here
39
     * @see LoopIterationListener#iterationStart(LoopIterationEvent)
39
     * @see LoopIterationListener#iterationStart(LoopIterationEvent)
40
     */
40
     */
41
    public void iterationStart(LoopIterationEvent event) {
41
    public void iterationStart(LoopIterationEvent event) {
42
        if (event.getIteration() == 1) {
42
        int numIteration = 1;
43
        // Bug 39509: iteration to 0 for all controller which not LoopController (and TG)
44
        if (!(event.getSource() instanceof LoopController)) {
45
            numIteration = 0;
46
        }
47
        if (event.getIteration() == numIteration) {
43
            reInitialize();
48
            reInitialize();
44
        }
49
        }
45
    }
50
    }

Return to bug 39509