Index: webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java |
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java |
index f12d5ce48f7c816f2718cd5abbf0b5b919ceb39b..f2c5270afffabb83597e07936ea39c3da185c622 100644 |
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java |
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java |
@@ -575,11 +575,7 @@ public class PeerConnectionClient { |
} |
Log.d(TAG, "Stopping capture."); |
if (videoCapturer != null) { |
- try { |
- videoCapturer.stopCapture(); |
- } catch(InterruptedException e) { |
- throw new RuntimeException(e); |
- } |
+ videoCapturer.stopCapture(); |
videoCapturer.dispose(); |
videoCapturer = null; |
} |
@@ -768,9 +764,7 @@ public class PeerConnectionClient { |
public void run() { |
if (videoCapturer != null && !videoCapturerStopped) { |
Log.d(TAG, "Stop video source."); |
- try { |
- videoCapturer.stopCapture(); |
- } catch (InterruptedException e) {} |
+ videoCapturer.stopCapture(); |
videoCapturerStopped = true; |
} |
} |