Commit 04b09515 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix fetching of ICE servers.

parent 240b05a6
......@@ -64,7 +64,7 @@ function ServerConnection() {
* The ICE configuration used by all associated streams.
* @type {Array.<Object>}
*/
this.iceServers = [];
this.iceServers = null;
/**
* The permissions granted to this connection.
* @type {Object.<string,boolean>}
......@@ -359,7 +359,7 @@ ServerConnection.prototype.newUpStream = function(id) {
throw new Error('Eek!');
}
let pc = new RTCPeerConnection({
iceServers: sc.iceServers,
iceServers: sc.iceServers || [],
});
if(!pc)
throw new Error("Couldn't create peer connection");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment