mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
FS-8087 test for valid cache before setting vars
This commit is contained in:
@@ -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