emediate/ios_sdk — pull request #7 by teodor-cristea (2014-01-08 10:14:19+00:00)
Title: Prevent accessing database and server if the app wasn’t properly restore...

...d. Apparently ASIHTTPRequest will sometimes process requests in its own loop before UIApplicationDidBecomeActiveNotification is properly dispatched.

Useful when coming back from background/inactive states.