Explorar o código

Merge pull request #50 from drichardson/master

SCNetworkReachibility objects not being freed
Ashley Mills %!s(int64=10) %!d(string=hai) anos
pai
achega
dfbdbfc6e2
Modificáronse 1 ficheiros con 1 adicións e 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
     }