mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 05:48:33 +00:00
FS-8087 test for valid cache before setting vars
This commit is contained in:
1 parent
17ee8dde70
commit
1727b457af
2 files changed
+9
-3
No files matched your search
@@ -1106,8 +1106,13 @@ var iceTimer;
|
||||
|
||||
if (cached) {
|
||||
var cache = $.parseJSON(cached);
|
||||
$.FSRTC.validRes = cache.validRes;
|
||||
console.log("CACHED RES FOR CAM " + cam, cache);
|
||||
|
||||
if (cache) {
|
||||
$.FSRTC.validRes = cache.validRes;
|
||||
console.log("CACHED RES FOR CAM " + cam, cache);
|
||||
} else {
|
||||
console.error("INVALID CACHE");
|
||||
}
|
||||
return func ? func(cache) : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user