mirror of
https://github.com/Moya/Moya.git
synced 2026-03-18 19:52:28 +00:00
Merge pull request #2354 from michalmlu/bugfix/moyaPublisher
Moya publisher sends new network requests with every demand update fix
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user