Moya publisher sends new network requests with every demand update fix

This commit is contained in:
Michał Młudzik
2024-08-05 13:37:28 +02:00
parent 10a9dd1577
commit c9f59e1883
+1 -1
View File
@@ -20,7 +20,7 @@ internal class MoyaPublisher<Output>: Publisher {
} }
func request(_ demand: Subscribers.Demand) { func request(_ demand: Subscribers.Demand) {
guard demand > .none else { return } guard demand > .none && cancellable == nil else { return }
cancellable = performCall() cancellable = performCall()
} }