失败不停程序

This commit is contained in:
ran.shang
2025-07-03 13:56:18 +08:00
parent a033ad1f35
commit 6cbb4526c8
3 changed files with 0 additions and 6 deletions

View File

@@ -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<String> execute(InputStream is, String from, XfProperties xfProperties) {

View File

@@ -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) {

View File

@@ -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) {