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 94b66a769f51069a6388a3aba9cc34df58eed8fc..8b4f17c6139efab73fdd26c4db48cf04c160ab8a 100644 |
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java |
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java |
@@ -286,8 +286,13 @@ public class PeerConnectionClient { |
executor.execute(new Runnable() { |
@Override |
public void run() { |
- createMediaConstraintsInternal(); |
- createPeerConnectionInternal(renderEGLContext); |
+ try { |
+ createMediaConstraintsInternal(); |
+ createPeerConnectionInternal(renderEGLContext); |
+ } catch (Exception e) { |
+ reportError("Failed to create peer connection: " + e.getMessage()); |
+ throw e; |
+ } |
} |
}); |
} |