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