diff --git a/src/main/java/com/newyetai/sdk/xf/service/RtasrClientApp.java b/src/main/java/com/newyetai/sdk/xf/service/RtasrClientApp.java index a98dbda..aeeb9d6 100644 --- a/src/main/java/com/newyetai/sdk/xf/service/RtasrClientApp.java +++ b/src/main/java/com/newyetai/sdk/xf/service/RtasrClientApp.java @@ -62,7 +62,6 @@ public class RtasrClientApp extends AbstractRtasrWebSocketListener{ public void onFail(WebSocket webSocket, Throwable t, Response response) { result = AlitaResult.bizError(t.getMessage()); latch.countDown(); - System.exit(0); } @Override @@ -70,19 +69,16 @@ public class RtasrClientApp extends AbstractRtasrWebSocketListener{ logger.error("业务异常,返回信息为:{}", text); result = AlitaResult.bizError(text); latch.countDown(); - System.exit(0); } @Override public void onClosing(WebSocket webSocket, int code, String reason) { latch.countDown(); - System.exit(0); } @Override public void onClosed() { latch.countDown(); - System.exit(0); } public static AlitaResult execute(InputStream is, String from, XfProperties xfProperties) { diff --git a/src/main/java/com/newyetai/sdk/xf/util/WebIATWS.java b/src/main/java/com/newyetai/sdk/xf/util/WebIATWS.java index aaefffb..5714fcc 100644 --- a/src/main/java/com/newyetai/sdk/xf/util/WebIATWS.java +++ b/src/main/java/com/newyetai/sdk/xf/util/WebIATWS.java @@ -216,7 +216,6 @@ public class WebIATWS extends WebSocketListener { log.info("onFailure body:" + response.body().string()); if (101 != code) { log.info("connection failed"); - System.exit(0); } } } catch (IOException e) { diff --git a/src/main/java/com/newyetai/sdk/xf/util/WebTtsWS.java b/src/main/java/com/newyetai/sdk/xf/util/WebTtsWS.java index 8cb98ba..f039229 100644 --- a/src/main/java/com/newyetai/sdk/xf/util/WebTtsWS.java +++ b/src/main/java/com/newyetai/sdk/xf/util/WebTtsWS.java @@ -137,7 +137,6 @@ public class WebTtsWS extends WebSocketListener { log.info("onFailure body:" + response.body().string()); if (101 != code) { log.info("connection failed"); - System.exit(0); } } } catch (IOException e) {