Roll back activateNow

This commit is contained in:
Ali
2021-03-15 19:31:30 +04:00
parent 9c02554d16
commit fe0f2dd56b

View File

@@ -422,7 +422,7 @@ public final class ManagedAudioSession {
if let strongSelf = self { if let strongSelf = self {
for holder in strongSelf.holders { for holder in strongSelf.holders {
if holder.id == id && holder.active { if holder.id == id && holder.active {
strongSelf.setup(type: audioSessionType, outputMode: holder.outputMode, activateNow: true) strongSelf.setup(type: audioSessionType, outputMode: holder.outputMode, activateNow: false)
break break
} }
} }
@@ -501,7 +501,7 @@ public final class ManagedAudioSession {
} }
} }
} }
public func dropAll() { public func dropAll() {
self.queue.async { self.queue.async {
self.updateHolders(interruption: true) self.updateHolders(interruption: true)