Skip to content

Conversation

alburdette619
Copy link
Owner

Previously, the one-time and subscription based APIs relied on a class level SCNetworkReachabilityRef instance. However, closing after the one-shot caused the instance to no longer be usable. Now there is a general method, getReachabilityRef, to get a new reachability ref. The one-shot instance is closed directly after use but the subscription instance is stored for reuse in stopObserving.

Previously, the one-time and subscription based APIs relyed on a class level `SCNetworkReachabilityRef` instance.  However, closing after the one-shot caused the instance to no longer be usable.  Now there is a general method, `getReachabilityRef`, to get a new reachability ref.  The one-shot instance is closed directly after use but the subscription instance is stored for reuse in `stopObserving`.
@alburdette619 alburdette619 merged commit 3e45854 into master Dec 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant