Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Fix race condition checking stream_mp3 feature flag (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
amendelsohn authored Nov 10, 2022
1 parent 36d53b0 commit 8a0c7a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/web/src/common/store/player/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import {
delay
} from 'typed-redux-saga'

import { waitForBackendAndAccount } from 'utils/sagaHelpers'

import errorSagas from './errorSagas'
const { getIsReachable } = reachabilitySelectors

Expand Down Expand Up @@ -59,6 +61,7 @@ const RECORD_LISTEN_INTERVAL = 1000
let FORCE_MP3_STREAM_TRACK_IDS: Set<string> | null = null

export function* watchPlay() {
yield* waitForBackendAndAccount()
const audiusBackendInstance = yield* getContext('audiusBackendInstance')
const apiClient = yield* getContext('apiClient')
const remoteConfigInstance = yield* getContext('remoteConfigInstance')
Expand Down

0 comments on commit 8a0c7a8

Please sign in to comment.