mirror of
https://github.com/jech/galene.git
synced 2024-12-22 15:25:48 +01:00
Don't fail findUpMedia when serverConnection is null.
This avoids throwing if the user changes their setting before login. Thanks to Jean-Jacques Sarton.
This commit is contained in:
parent
0a14b78d67
commit
084cd3da1f
1 changed files with 2 additions and 0 deletions
|
@ -1761,6 +1761,8 @@ function closeUpMedia(label) {
|
||||||
* @returns {Stream}
|
* @returns {Stream}
|
||||||
*/
|
*/
|
||||||
function findUpMedia(label) {
|
function findUpMedia(label) {
|
||||||
|
if(!serverConnection)
|
||||||
|
return null;
|
||||||
for(let id in serverConnection.up) {
|
for(let id in serverConnection.up) {
|
||||||
let c = serverConnection.up[id];
|
let c = serverConnection.up[id];
|
||||||
if(c.label === label)
|
if(c.label === label)
|
||||||
|
|
Loading…
Reference in a new issue