Commit 44432010 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk

new lrc: connectivity changed

Use new lrc for notify when connectivity changed.

Change-Id: Ic6d3b8b6537a220ac5de69d723b1d30ef3379e9d
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent af50592b
......@@ -104,7 +104,7 @@ std::unique_ptr<lrc::api::Lrc> lrc;
void (^callbackBlock)(SCNetworkReachabilityFlags) = ^(SCNetworkReachabilityFlags flags) {
BOOL reachable = (flags & kSCNetworkReachabilityFlagsReachable) != 0;
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
AccountModel::instance().slotConnectivityChanged();
lrc->connectivityChanged();
}];
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment