Skip to content

Commit

Permalink
chore: added extra guard
Browse files Browse the repository at this point in the history
  • Loading branch information
demchuk-alex committed Oct 23, 2024
1 parent 6d5c284 commit 6bb4e9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/AudioSessionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ class AudioSessionManager {
self.destroyPlayerNode()
self.audioEngine = AVAudioEngine()
} else {
if self.audioEngine.isRunning {
self.audioEngine.stop()
}
self.destroyPlayerNode()
try self.restartAudioSessionForPlayback()
}
Expand Down

0 comments on commit 6bb4e9f

Please sign in to comment.