1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 07:15:47 +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:
Juliusz Chroboczek 2024-12-15 14:14:10 +01:00
parent 0a14b78d67
commit 084cd3da1f

View file

@ -1761,6 +1761,8 @@ function closeUpMedia(label) {
* @returns {Stream}
*/
function findUpMedia(label) {
if(!serverConnection)
return null;
for(let id in serverConnection.up) {
let c = serverConnection.up[id];
if(c.label === label)