Do not set bool on timer
This commit is contained in:
@@ -228,6 +228,8 @@ class LatencyCompensator {
|
|||||||
|
|
||||||
jump(seekPosition) {
|
jump(seekPosition) {
|
||||||
this.jumpingToLiveIgnoreBuffer = true;
|
this.jumpingToLiveIgnoreBuffer = true;
|
||||||
|
this.performedInitialLiveJump = true;
|
||||||
|
|
||||||
this.lastJumpOccurred = new Date();
|
this.lastJumpOccurred = new Date();
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
@@ -240,7 +242,6 @@ class LatencyCompensator {
|
|||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.jumpingToLiveIgnoreBuffer = false;
|
this.jumpingToLiveIgnoreBuffer = false;
|
||||||
this.performedInitialLiveJump = true;
|
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user