drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 132 forks source link

CDEICloudFileSystemDidDownloadFilesNotification is fired when offline #238

Open pronebird opened 8 years ago

pronebird commented 8 years ago

I merge upon CDEICloudFileSystemDidDownloadFilesNotification and that works fine. However, if my device is offline with Wi-Fi disassociated from AP and Mobile data disabled, this notification is fired periodically every couple of seconds, which does not make sense to me.

I have a feeling that Ensembles attempts to restart NSMetadataQuery even though network is unavailable and there is nothing to do.

If I am right, it would be smart to at least wait until reachability flags.

drewmccormack commented 8 years ago

Hmm, that indeed sounds like a bug.