失败不停程序
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user