Merge pull request #2354 from michalmlu/bugfix/moyaPublisher

Moya publisher sends new network requests with every demand update fix
This commit is contained in:
Andrew Breckenridge
2026-02-28 11:57:41 -05:00
committed by GitHub
+1 -1
View File
@@ -20,7 +20,7 @@ internal class MoyaPublisher<Output>: Publisher {
}
func request(_ demand: Subscribers.Demand) {
guard demand > .none else { return }
guard demand > .none && cancellable == nil else { return }
cancellable = performCall()
}