Explorar el Código

Merge pull request #50 from drichardson/master

SCNetworkReachibility objects not being freed
Ashley Mills hace 10 años
padre
commit
dfbdbfc6e2
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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
     }