Skip to content

Commit

Permalink
Merge pull request #2 from grandcentrix/feature/objc_weak_error_fix
Browse files Browse the repository at this point in the history
Silence the objc_weak_error warnings
  • Loading branch information
Paul Ehrhardt authored Mar 23, 2017
2 parents b20c040 + 0c48c2b commit cfa8daa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GCXMulticastDNSKit/Discovery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ extension Discovery {
fileprivate func stopSearchingAndResolving() {
let _ = items?.map {
$0.netServiceBrowser.stop()
let _ = $0.netServices.map { $0.stop() }
$0.netServiceBrowser.delegate = nil
let _ = $0.netServices.map {
$0.stop()
$0.delegate = nil
}
}

items = nil
Expand Down

0 comments on commit cfa8daa

Please sign in to comment.