mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
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:
parent
8cb2714dae
commit
3652c7066c
@ -1343,6 +1343,11 @@ function updateMulti( viewer ) {
|
||||
|
||||
var beginTime;
|
||||
|
||||
if ( !viewer.source ) {
|
||||
THIS[ viewer.hash ].updateRequestId = null;
|
||||
return;
|
||||
}
|
||||
|
||||
beginTime = +new Date();
|
||||
updateOnce( viewer );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user