Skip to content

Commit

Permalink
Merge pull request #46 from DolbyIO/bugfix/remove-all-observations-on…
Browse files Browse the repository at this point in the history
…-end-stream

Remove all state observations on end stream
  • Loading branch information
aravind-raveendran authored Nov 23, 2023
2 parents bbcb0f7 + 30fa92c commit 97906f9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ final class StreamViewModel: ObservableObject {

func endStream() async {
_ = await streamOrchestrator.stopConnection()
subscriptions.removeAll()
}

func playAudio(for source: StreamSource) {
Expand Down

0 comments on commit 97906f9

Please sign in to comment.