jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1817422 - /jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java
Date Thu, 07 Dec 2017 20:59:35 GMT
Author: pmouawad
Date: Thu Dec  7 20:59:35 2017
New Revision: 1817422

URL: http://svn.apache.org/viewvc?rev=1817422&view=rev
Log:
The == is intentional

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java?rev=1817422&r1=1817421&r2=1817422&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/AsynchSampleSender.java Thu Dec  7 20:59:35
2017
@@ -147,7 +147,8 @@ public class AsynchSampleSender extends
                     List<SampleEvent> l = new ArrayList<>();
                     SampleEvent e = queue.take();
                     // try to process as many as possible
-                    while (!(eof = FINAL_EVENT.equals(e)) && e != null) {
+                    // The == comparison is not an error
+                    while (!(eof = e == FINAL_EVENT) && e != null) {
                         l.add(e);
                         e = queue.poll(); // returns null if nothing on queue currently
                     }



Mime
View raw message