@@ -103,6 +103,13 @@ public class ExecutionServer {
} catch (Exception e) {
log.info(e.toString());
throw new RuntimeException("指令执行失败");
+ }finally {
+ try {
+ if (reader != null) reader.close();
+ if (writer != null) writer.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
}