chore: delay network notifier start

This commit is contained in:
yicheng 2021-06-15 20:07:21 +08:00
parent 3e51d7d4e2
commit 05dab6af12
No known key found for this signature in database
GPG Key ID: 7CF411A6623B1C0A

View File

@ -298,7 +298,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}
func setupNetworkNotifier() {
NetworkChangeNotifier.start()
DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
NetworkChangeNotifier.start()
}
NotificationCenter
.default