From 6b36b77d8753d58025459ee2f6bb55cbeaa2a22b Mon Sep 17 00:00:00 2001 From: overtake Date: Fri, 29 Jan 2021 19:52:29 +0400 Subject: [PATCH] fix reachability [skip ci] --- submodules/Reachability/Sources/Reachability.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/submodules/Reachability/Sources/Reachability.swift b/submodules/Reachability/Sources/Reachability.swift index 2ff4c4bf37..2f0f53ab3b 100644 --- a/submodules/Reachability/Sources/Reachability.swift +++ b/submodules/Reachability/Sources/Reachability.swift @@ -12,7 +12,7 @@ private final class WrappedLegacyReachability: NSObject { } private static let thread: Thread = { - let thread = Thread(target: Reachability.self, selector: #selector(WrappedLegacyReachability.threadImpl), object: nil) + let thread = Thread(target: WrappedLegacyReachability.self, selector: #selector(WrappedLegacyReachability.threadImpl), object: nil) thread.start() return thread }() @@ -152,13 +152,13 @@ public enum Reachability { if #available(iOSApplicationExtension 12.0, iOS 12.0, OSX 10.14, *) { return Signal { subscriber in let disposable = MetaDisposable() - + SharedPathMonitor.impl.with { impl in disposable.set(impl.networkType.get().start(next: { value in subscriber.putNext(value) })) } - + return disposable } |> distinctUntilChanged