mirror of
https://github.com/jech/galene.git
synced 2024-12-22 23:35:46 +01:00
Fix fetching of ICE servers.
This commit is contained in:
parent
240b05a660
commit
04b0951530
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue