mirror of
https://git.gay/lucida/lucida
synced 2025-12-11 20:15:14 +01:00
fix improper throwing of tidal
This commit is contained in:
parent
7bcbecacc5
commit
361dde11a1
@ -119,14 +119,6 @@ export default class Tidal implements Streamer {
|
|||||||
this.expires = options.expires
|
this.expires = options.expires
|
||||||
this.countryCode = options.countryCode
|
this.countryCode = options.countryCode
|
||||||
if (options.dispatcher) this.dispatcher = options.dispatcher
|
if (options.dispatcher) this.dispatcher = options.dispatcher
|
||||||
|
|
||||||
const getReady = async () => {
|
|
||||||
if (!this.refreshToken) return
|
|
||||||
if (await this.sessionValid()) return
|
|
||||||
const success = await this.refresh()
|
|
||||||
if (!success) console.log(`[tidal] Failed to refresh tokens, this could be a bad sign`)
|
|
||||||
}
|
|
||||||
getReady()
|
|
||||||
}
|
}
|
||||||
headers() {
|
headers() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user