1. 优化模块加载、去掉部分逻辑、升级socket版本号
This commit is contained in:
@@ -6,6 +6,7 @@ import com.alibaba.android.arouter.launcher.ARouter;
|
||||
import com.mogo.tts.base.IMogoTTS;
|
||||
import com.mogo.tts.base.MogoTTSConstants;
|
||||
import com.mogo.tts.base.PreemptType;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
@@ -15,6 +16,8 @@ import com.mogo.tts.base.PreemptType;
|
||||
*/
|
||||
public class AIAssist {
|
||||
|
||||
private static final String TAG = "AIAssist";
|
||||
|
||||
private static volatile AIAssist sInstance;
|
||||
|
||||
private IMogoTTS mTTS;
|
||||
@@ -32,7 +35,11 @@ public class AIAssist {
|
||||
|
||||
public synchronized void release() {
|
||||
if ( mTTS != null ) {
|
||||
mTTS.release();
|
||||
try {
|
||||
mTTS.release();
|
||||
} catch ( Exception e ) {
|
||||
Logger.e( TAG, e, "release" );
|
||||
}
|
||||
}
|
||||
sInstance = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user