Skip to content

Commit 7c2be3b

Browse files
committed
fix: update error handling to stop capturing on permanent errors #186
1 parent 27dbcbe commit 7c2be3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webrtc-jni/src/main/cpp/src/media/video/VideoTrackDesktopSource.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ namespace jni
124124
if (result == webrtc::DesktopCapturer::Result::ERROR_PERMANENT) {
125125
RTC_LOG(LS_ERROR) << "Permanent error capturing desktop frame. Stopping track.";
126126

127-
terminate();
128-
stop();
127+
isCapturing = false;
129128
}
130129

131130
return;

0 commit comments

Comments
 (0)