Skip to content

Commit

Permalink
Remove redundant logging.
Browse files Browse the repository at this point in the history
And move the backup stun server to the end of the list.
  • Loading branch information
jim-signal authored and greyson-signal committed Feb 1, 2023
1 parent 62a2f3d commit 43cde19
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -859,9 +859,7 @@ public void retrieveTurnServers(@NonNull RemotePeer remotePeer) {
TurnServerInfo turnServerInfo = ApplicationDependencies.getSignalServiceAccountManager().getTurnServerInfo();

List<PeerConnection.IceServer> iceServers = new LinkedList<>();
iceServers.add(PeerConnection.IceServer.builder("stun:stun1.l.google.com:19302").createIceServer());
for (String url : turnServerInfo.getUrls()) {
Log.i(TAG, "ice_server: " + url);
if (url.startsWith("turn")) {
iceServers.add(PeerConnection.IceServer.builder(url)
.setUsername(turnServerInfo.getUsername())
Expand All @@ -871,6 +869,7 @@ public void retrieveTurnServers(@NonNull RemotePeer remotePeer) {
iceServers.add(PeerConnection.IceServer.builder(url).createIceServer());
}
}
iceServers.add(PeerConnection.IceServer.builder("stun:stun1.l.google.com:19302").createIceServer());

process((s, p) -> {
RemotePeer activePeer = s.getCallInfoState().getActivePeer();
Expand Down

0 comments on commit 43cde19

Please sign in to comment.