Browse Source

Merge pull request #50 from drichardson/master

SCNetworkReachibility objects not being freed
Ashley Mills 10 years ago
parent
commit
dfbdbfc6e2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Reachability.swift

+ 1 - 0
Reachability.swift

@@ -151,6 +151,7 @@ public class Reachability: NSObject {
     public func stopNotifier() {
         if let reachabilityRef = reachabilityRef {
             SCNetworkReachabilitySetCallback(reachabilityRef, nil, nil)
+            SCNetworkReachabilitySetDispatchQueue(reachabilityRef, nil)
         }
         notifierRunning = false
     }