aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-10-23 21:43:42 +0200
committermetamuffin <metamuffin@disroot.org>2023-10-23 21:43:42 +0200
commit55f7f06cecd5b6f5661f6f22e8bb3e0448b9713a (patch)
treee26ef86aa4928865fb45abfec51c3a72078fb17e /web
parente7096a499a6e2a8a05f0991898f75da9c928dd70 (diff)
downloadjellything-55f7f06cecd5b6f5661f6f22e8bb3e0448b9713a.tar
jellything-55f7f06cecd5b6f5661f6f22e8bb3e0448b9713a.tar.bz2
jellything-55f7f06cecd5b6f5661f6f22e8bb3e0448b9713a.tar.zst
player: fix double-remove of persistent logs
Diffstat (limited to 'web')
-rw-r--r--web/script/player/player.ts2
1 files changed, 1 insertions, 1 deletions
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)
}