changeset 928:0e44461d621b

runners: shut down binary link client in proper order.
author shade
date Wed, 23 Jul 2014 21:33:19 +0400
parents 1a1afdd2d036
children 6cc1450c6a0f
files jmh-core/src/main/java/org/openjdk/jmh/runner/link/BinaryLinkClient.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/link/BinaryLinkClient.java	Wed Jul 23 16:22:10 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/link/BinaryLinkClient.java	Wed Jul 23 21:33:19 2014 +0400
@@ -73,10 +73,11 @@
 
     public void close() throws IOException {
         synchronized (lock) {
-            oos.writeObject(new FinishingFrame());
-            FileUtils.safelyClose(oos);
             FileUtils.safelyClose(streamErr);
             FileUtils.safelyClose(streamOut);
+            oos.writeObject(new FinishingFrame());
+            FileUtils.safelyClose(ois);
+            FileUtils.safelyClose(oos);
             clientSocket.close();
         }
     }