jbenet / ios-ntp

SNTP implementation for iOS
http://code.google.com/p/ios-ntp/
MIT License
369 stars 112 forks source link

NetAssociation enables itself on foreground even when not previously enabled #24

Open benf1977 opened 9 years ago

benf1977 commented 9 years ago

I'm trying to do one-off queries of the NTP server using sendTimeQuery. I thus never enable my NetAssociation but it gets enable by the foregrounding event. I just commented those sections out for my own use, but you might want to do some kind of check of whether the user wants the services enabled at all.

gavineadie commented 9 years ago

I agree .. I'm rewriting NetAssociation to get rid of a lot of monkeying around with averages and statistics that don't gain you anything on a device where the first priority is fast user response. We'll see if "enable" and "finish" survive this process!