Prevent accessing database and server if the app wasn’t properly restored. Apparently ASIHTTPRequest will sometimes process requests in its own loop before UIApplicationDidBecomeActiveNotification is properly dispatched.
Useful when coming back from background/inactive states.
Merge pull request #7 from teodor-cristea/master1

Prevent accessing database and server if the app wasn’t properly restore...