Commit 40c750b9 authored by helinlin's avatar helinlin

对接语音数据

parent 33f0f67f
...@@ -41,6 +41,8 @@ public class AppSpeechTranscriber { ...@@ -41,6 +41,8 @@ public class AppSpeechTranscriber {
public void run() { public void run() {
idleTime++; idleTime++;
if (idleTime > 60) { if (idleTime > 60) {
timerTask.cancel();
serverSocketTimeoutTimer.cancel();
logger.warn("serverSocket,port:" + serverSocket.getLocalPort() + " 等待60s无数据回复即将自动关闭!"); logger.warn("serverSocket,port:" + serverSocket.getLocalPort() + " 等待60s无数据回复即将自动关闭!");
closeServerSocket(); closeServerSocket();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment