Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* The issue hapens due to the race between setting the _session to nil in the -URLSession:didBecomeInvalidWithError: delegate method and calling NSURLSession’s finishTasksAndInvalidate when closing the CBLRemoteSession. The issue is a regression of fixing #1429 (race of resetting _allRequests). * Solution: created a strong session that will exists through the block execution. * Note: Calling NSURLSessions’s -finishTasksAndInvalidate after the sesion is invalidated is no-ops operation (from manual testing). #1923
- Loading branch information