Skip to content

Commit 20a49bd

Browse files
committed
Pause discovery on connected, not on connect attempt
1 parent 27bb08c commit 20a49bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/ItsytvCore/Protocol/AppleTVManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ public final class AppleTVManager {
158158
}
159159

160160
private func connect(to device: AppleTVDevice, preservingPendingCommands: Bool) {
161-
discovery.pause()
162161
disconnect(clearPendingCommands: !preservingPendingCommands)
163162
connectionStatus = .connecting
164163
self.connectedDevice = device
@@ -748,6 +747,7 @@ public final class AppleTVManager {
748747
}
749748
DispatchQueue.main.async {
750749
self?.connectionStatus = .connected
750+
self?.discovery.pause()
751751
self?.flushPendingCompanionCommands()
752752
self?.fetchApps()
753753
}

0 commit comments

Comments
 (0)