From f272e8b74946390e0fa02006359d6e492eb1b753 Mon Sep 17 00:00:00 2001 From: Chris Custine Date: Tue, 10 Nov 2009 05:35:23 +0000 Subject: [PATCH] FELIX-1858 - Remote commands via ssh only work once per restart git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@834355 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/felix/gogo/runtime/shell/Pipe.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java index ed92238a1cb..5b8dca5c511 100644 --- a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java +++ b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java @@ -103,9 +103,6 @@ public void run() { out.flush(); closure.session.service.threadIO.close(); - tIn.set(in); - tOut.set(out); - tErr.set(err); try { @@ -122,6 +119,11 @@ public void run() { e.printStackTrace(); } + + tIn.set(null); + tOut.set(null); + tErr.set(null); + } } }