Author: sebb
Date: Tue May  5 14:49:53 2009
New Revision: 771755

URL: http://svn.apache.org/viewvc?rev=771755&view=rev
Log:
Bug 47150 - ThreadGroup with a loop count of zero causes infinite loop

Modified:
    jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/LoopController.java
    jakarta/jmeter/trunk/xdocs/changes.xml

Modified: 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/LoopController.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/LoopController.java?rev=771755&r1=771754&r2=771755&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/LoopController.java 
(original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/LoopController.java 
Tue May  5 14:49:53 2009
@@ -101,6 +101,9 @@
      */
     public Sampler next() {
         if(endOfLoop()) {
+            if (!getContinueForever()) {
+                setDone(true);
+            }
             return null;
         }
         return super.next();

Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=771755&r1=771754&r2=771755&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Tue May  5 14:49:53 2009
@@ -209,6 +209,7 @@
 <li>Bug 47127 -  Unable to change language to pl_PL</li>
 <li>Bug 47120 -  Throughput Controller: change percent executions to total 
executions, the value is stored in a String and interpreted as 1 execution</li>
 <li>Bug 47137 - Labels in View Results Tree aren't I18N</li>
+<li>Bug 47150 - ThreadGroup with a loop count of zero causes infinite loop</li>
 </ul>
 
 <h3>Improvements</h3>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to