jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1571299 - /jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java
Date Mon, 24 Feb 2014 14:35:41 GMT
Author: sebb
Date: Mon Feb 24 14:35:41 2014
New Revision: 1571299

URL: http://svn.apache.org/r1571299
Log:
Close input in mainline code

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java?rev=1571299&r1=1571298&r2=1571299&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java Mon Feb 24 14:35:41
2014
@@ -78,6 +78,7 @@ public class BeanShellClient {
         os.flush();
         sock.shutdownOutput(); // Tell server that we are done
         sockRead.join(); // wait for script to finish
+        is.close();
         os.close();
     }
 
@@ -110,15 +111,7 @@ public class BeanShellClient {
                 // TODO Why empty block ?
             } finally {
                 System.out.println("... disconnected from server.");
-                if (is != null) {
-                    try {
-                        is.close();
-                    } catch (IOException e) {
-                    }
-                }
             }
-
         }
-
     }
 }



Mime
View raw message