Restored checking if timeout has been hit on resuming the app