diff --git a/RtcEngine.kt b/RtcEngine.kt index b41037995..d0d568a33 100644 --- a/RtcEngine.kt +++ b/RtcEngine.kt @@ -628,7 +628,7 @@ class RtcEngineManager( } override fun setAudioSessionOperationRestriction(params: Map, callback: Callback) { - callback.resolve(engine) { Constants.ERR_NOT_SUPPORTED } + callback.code(-Constants.ERR_NOT_SUPPORTED) } override fun setLocalVoiceChanger(params: Map, callback: Callback) {