Author: sebb
Date: Thu Dec  6 14:51:27 2007
New Revision: 601897

URL: http://svn.apache.org/viewvc?rev=601897&view=rev
Log:
Combine duplicate code

Modified:
    
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/ProxyControl.java

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/ProxyControl.java?rev=601897&r1=601896&r2=601897&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
 Thu Dec  6 14:51:27 2007
@@ -389,16 +389,15 @@
                        sampler.setImageParser(samplerDownloadImages);
 
                        placeSampler(sampler, subConfigs, myTarget);
-
-                       notifySampleListeners(new SampleEvent(result, 
"WorkBench")); // TODO - is this the correct threadgroup name?
                }
                else {
                        if(log.isDebugEnabled()) {
                                log.debug("Sample excluded based on url or 
content-type: " + result.getUrlAsString() + " - " + result.getContentType());
                        }
                        result.setSampleLabel("["+result.getSampleLabel()+"]");
-                       notifySampleListeners(new SampleEvent(result, 
"WorkBench")); // TODO - is this the correct threadgroup name?
                }
+               // SampleEvent is not passed JMeterVariables, because they 
don't make sense for Proxy Recording
+               notifySampleListeners(new SampleEvent(result, "WorkBench")); // 
TODO - is this the correct threadgroup name?
        }
 
        public void stopProxy() {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to