Browse Source

fix(audio-output): return the reject promise

tags/v0.0.2
Leonard Kim 7 years ago
parent
commit
5ef178a105
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/RTC/RTCUtils.js

+ 1
- 1
modules/RTC/RTCUtils.js View File

@@ -1692,7 +1692,7 @@ class RTCUtils extends Listenable {
1692 1692
      */
1693 1693
     setAudioOutputDevice(deviceId) {
1694 1694
         if (!this.isDeviceChangeAvailable('output')) {
1695
-            Promise.reject(
1695
+            return Promise.reject(
1696 1696
                 new Error('Audio output device change is not supported'));
1697 1697
         }
1698 1698
 

Loading…
Cancel
Save