Skip to content

Commit

Permalink
fix: DurationController - Use new cleanup method for cleaning up even…
Browse files Browse the repository at this point in the history
…t listeners early if errors occur during update
  • Loading branch information
Sub-Xaero committed Nov 9, 2021
1 parent 3cc25bd commit e5682f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/controllers/visual/duration_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ export class DurationController extends BaseController {
try {
this.el.innerHTML = this._output;
} catch {
if (this._intervalHandle) {
window.clearInterval(this._intervalHandle);
}
this._clearInterval();
}
}
}

0 comments on commit e5682f8

Please sign in to comment.