{"comment":{"url":"https://api.github.com/repos/advaita13/open-keychain/comments/16537396","html_url":"https://github.com/advaita13/open-keychain/commit/d0c7c622dbfe52dd1772fc1facb06887868648d0#commitcomment-16537396","id":16537396,"user":{"login":"advaita13","id":11889814,"avatar_url":"https://avatars.githubusercontent.com/u/11889814?v=3","gravatar_id":"","url":"https://api.github.com/users/advaita13","html_url":"https://github.com/advaita13","followers_url":"https://api.github.com/users/advaita13/followers","following_url":"https://api.github.com/users/advaita13/following{/other_user}","gists_url":"https://api.github.com/users/advaita13/gists{/gist_id}","starred_url":"https://api.github.com/users/advaita13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advaita13/subscriptions","organizations_url":"https://api.github.com/users/advaita13/orgs","repos_url":"https://api.github.com/users/advaita13/repos","events_url":"https://api.github.com/users/advaita13/events{/privacy}","received_events_url":"https://api.github.com/users/advaita13/received_events","type":"User","site_admin":false},"position":51,"line":51,"path":"OpenKeychain/src/main/java/org/sufficientlysecure/keychain/receiver/NetworkReceiver.java","commit_id":"d0c7c622dbfe52dd1772fc1facb06887868648d0","created_at":"2016-03-07T15:08:19Z","updated_at":"2016-03-07T15:08:19Z","body":"So say that my wifi is turned off and it's been 3 days since the last sync. A new sync will be initiated. Since there isn't an active wifi connection, the receiver is enabled. Once wifi is back there must be something in the NetworkReceiver that forces the Service to sync. I know I haven't disabled the service anywhere but enableKeyserverSync will force a sync when called otherwise there won't be a sync for another 3 days. This could go on indefinitely.\r\n\r\nOr, I could keep the postponeSync (refer note below). But even then a case might arise where periodic sync simply doesn't happen because there was no wifi then."}}