浏览代码

Merge pull request #50 from drichardson/master

SCNetworkReachibility objects not being freed
Ashley Mills 10 年之前
父节点
当前提交
dfbdbfc6e2
共有 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
     }