Skip to content

Request's resume() called twice if the session starts requests automatically #3

@frederic-c-dcode

Description

@frederic-c-dcode

When creating a signal using the func toSignal(), resume() is called on the request. If the session on which the request is executed has startRequestsImmediately = true, then this would end up calling twice resume() for this request.

This is noticeable when using the AlamofireNetworkActivityIndicator framework, because for a single request, the activity indicator count is incremented twice (and only decremented once when the request completes).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions