FS-7127 #comment fix regression from a80c739, thanks Mike

The second hunk in this patch isn't right.  In the past,
if tmp was null, it would not pass the if.
This commit is contained in:
Seven Du
2015-01-07 15:38:38 +08:00
parent 7c0c3ab8a6
commit 23c1829382
2 changed files with 3 additions and 3 deletions

View File

@@ -493,7 +493,7 @@
tmp = null;
}
if (!(tmp && typeof(tmp) == "object" && tmp.constructor === Array)) {
if (tmp && !(typeof(tmp) == "object" && tmp.constructor === Array)) {
console.warn("iceServers must be an array, reverting to default ice servers");
tmp = null;
}