浏览代码

SCNetworkReachability objects not freed when startNotify called.

Doug Richardson 10 年之前
父节点
当前提交
68f565f331
共有 1 个文件被更改,包括 1 次插入0 次删除
  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
     }