Always try to update end time after new media info

This commit is contained in:
Rafał Dzięgiel
2021-04-09 13:53:43 +02:00
parent 1bf46a2f12
commit 8fb6b971fe
2 changed files with 9 additions and 6 deletions

View File

@@ -162,7 +162,7 @@ class ClapperRevealerTop extends CustomRevealer
/* Make sure that next timeout is always run after clock changes,
* by delaying it for additional few milliseconds */
const nextUpdate = 60002 - parseInt(currTime.get_seconds() * 1000);
const nextUpdate = 60004 - parseInt(currTime.get_seconds() * 1000);
debug(`updated current time: ${now}, ends at: ${end}`);
return nextUpdate;