From 55f7f06cecd5b6f5661f6f22e8bb3e0448b9713a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 23 Oct 2023 21:43:42 +0200 Subject: player: fix double-remove of persistent logs --- web/script/player/player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/script/player/player.ts') diff --git a/web/script/player/player.ts b/web/script/player/player.ts index 062ad59..acf2a19 100644 --- a/web/script/player/player.ts +++ b/web/script/player/player.ts @@ -21,7 +21,7 @@ export class Player { private cancel_buffering_pers: undefined | (() => void) set_pers(s?: string) { - if (this.cancel_buffering_pers) this.cancel_buffering_pers() + if (this.cancel_buffering_pers) this.cancel_buffering_pers(), this.cancel_buffering_pers = undefined if (s) this.cancel_buffering_pers = this.logger?.log_persistent(s) } -- cgit v1.2.3-70-g09d2