Index: webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm |
diff --git a/webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm b/webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm |
index f4530167f943928e7fe4ef5fb2ada88a273edc52..84cc6da4e436d566c007461912cd183bc3b3a9bf 100644 |
--- a/webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm |
+++ b/webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm |
@@ -688,7 +688,7 @@ NSInteger const kRTCAudioSessionErrorConfiguration = -2; |
if (![self setConfiguration:webRTCConfig active:YES error:&error]) { |
RTCLogError(@"Failed to set WebRTC audio configuration: %@", |
error.localizedDescription); |
- [self unconfigureWebRTCSession:nil]; |
+ // Do not call setActive:NO if setActive:YES failed. |
if (outError) { |
*outError = error; |
} |