Re-add viewer.source check in updateMulti()

It should be redundant in normal operation, but may prevent a timer leak
in case of a bug in the open/close path.
This commit is contained in:
Benjamin Gilbert 2013-04-29 13:17:37 -04:00
parent 8cb2714dae
commit 3652c7066c

View File

@ -1343,6 +1343,11 @@ function updateMulti( viewer ) {
var beginTime;
if ( !viewer.source ) {
THIS[ viewer.hash ].updateRequestId = null;
return;
}
beginTime = +new Date();
updateOnce( viewer );