diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-25 16:14:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-26 10:01:42 +0200 |
commit | 98ab5dc81048d47d08a231f17698128f959e59b2 (patch) | |
tree | 7f74f835dc35d9f72918c56857f7f28b70d7053f /client/src/assets/player | |
parent | 851675c5591dcab1070183f0ed1b1a788de07d2c (diff) | |
download | PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.gz PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.zst PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.zip |
Remove useless async
Diffstat (limited to 'client/src/assets/player')
-rw-r--r-- | client/src/assets/player/stats/stats-card.ts | 4 | ||||
-rw-r--r-- | client/src/assets/player/webtorrent/peertube-chunk-store.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/client/src/assets/player/stats/stats-card.ts b/client/src/assets/player/stats/stats-card.ts index a32f6fb97..45fd30d55 100644 --- a/client/src/assets/player/stats/stats-card.ts +++ b/client/src/assets/player/stats/stats-card.ts | |||
@@ -86,7 +86,7 @@ class StatsCard extends Component { | |||
86 | this.updateInterval = setInterval(async () => { | 86 | this.updateInterval = setInterval(async () => { |
87 | try { | 87 | try { |
88 | const options = this.mode === 'p2p-media-loader' | 88 | const options = this.mode === 'p2p-media-loader' |
89 | ? await this.buildHLSOptions() | 89 | ? this.buildHLSOptions() |
90 | : await this.buildWebTorrentOptions() // Default | 90 | : await this.buildWebTorrentOptions() // Default |
91 | 91 | ||
92 | this.list.innerHTML = this.getListTemplate(options) | 92 | this.list.innerHTML = this.getListTemplate(options) |
@@ -102,7 +102,7 @@ class StatsCard extends Component { | |||
102 | this.container.style.display = 'none' | 102 | this.container.style.display = 'none' |
103 | } | 103 | } |
104 | 104 | ||
105 | private async buildHLSOptions () { | 105 | private buildHLSOptions () { |
106 | const p2pMediaLoader = this.player_.p2pMediaLoader() | 106 | const p2pMediaLoader = this.player_.p2pMediaLoader() |
107 | const level = p2pMediaLoader.getCurrentLevel() | 107 | const level = p2pMediaLoader.getCurrentLevel() |
108 | 108 | ||
diff --git a/client/src/assets/player/webtorrent/peertube-chunk-store.ts b/client/src/assets/player/webtorrent/peertube-chunk-store.ts index 93ca8e1d8..81378c277 100644 --- a/client/src/assets/player/webtorrent/peertube-chunk-store.ts +++ b/client/src/assets/player/webtorrent/peertube-chunk-store.ts | |||
@@ -184,7 +184,7 @@ export class PeertubeChunkStore extends EventEmitter { | |||
184 | private runCleaner () { | 184 | private runCleaner () { |
185 | this.checkExpiration() | 185 | this.checkExpiration() |
186 | 186 | ||
187 | this.cleanerInterval = setInterval(async () => { | 187 | this.cleanerInterval = setInterval(() => { |
188 | this.checkExpiration() | 188 | this.checkExpiration() |
189 | }, PeertubeChunkStore.CLEANER_INTERVAL_MS) | 189 | }, PeertubeChunkStore.CLEANER_INTERVAL_MS) |
190 | } | 190 | } |