Skip to content

Commit d735264

Browse files
pblazejclaude
andcommitted
Use utility QoS for DeviceManager discovery
Matches the AsyncCompleter timer queue: `.utility` clears the indefinite-deferral hazard of `.background` without over-elevating one-shot discovery work. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent a70bf2c commit d735264

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/LiveKit/Support/Video/DeviceManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class DeviceManager: @unchecked Sendable, Loggable {
100100
log()
101101

102102
#if os(iOS) || os(macOS) || os(tvOS)
103-
DispatchQueue.global(qos: .default).async { [weak self] in
103+
DispatchQueue.global(qos: .utility).async { [weak self] in
104104
guard let self else { return }
105105
_devicesObservation = discoverySession.observe(\.devices, options: [.initial, .new]) { [weak self] _, value in
106106
guard let self else { return }
@@ -122,7 +122,7 @@ class DeviceManager: @unchecked Sendable, Loggable {
122122
#endif
123123

124124
#if os(iOS) || os(tvOS)
125-
DispatchQueue.global(qos: .default).async { [weak self] in
125+
DispatchQueue.global(qos: .utility).async { [weak self] in
126126
guard let self else { return }
127127
_multiCamDeviceSetsObservation = discoverySession.observe(\.supportedMultiCamDeviceSets, options: [.initial, .new]) { [weak self] _, value in
128128
guard let self else { return }

0 commit comments

Comments
 (0)