huynguyencong / NHNetworkTime

A simple network time protocol SNTP open source for iOS, get the correct time.
Apache License 2.0
118 stars 22 forks source link

Time is not synchronised if we call synchronize multiple times #22

Closed Ravi-Kiran-HR closed 6 years ago

Ravi-Kiran-HR commented 7 years ago

when we call [[NHNetworkClock sharedNetworkClock]synchronize]; multiple times ( some 4 times )

[NSDate networkDate] will always return the local time (time is not synchronised) and in the console we are getting the following error

dnssd_clientstub deliver_request: socketpair failed 24 (Too many open files)

nickbarbato commented 7 years ago

same issue...

MchlG commented 7 years ago

same issue here

On Thu, May 18, 2017 at 5:30 PM, nickbarbato notifications@github.com wrote:

same issue...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/huynguyencong/NHNetworkTime/issues/22#issuecomment-302547191, or mute the thread https://github.com/notifications/unsubscribe-auth/ATugE8b4rPNgnlyZVd9emDoR5Xp3vLPWks5r7LhfgaJpZM4Mvhq2 .

huynguyencong commented 6 years ago

It's not necessary calling synchronize multiple time. Just call once then wait for the network time