Fixing getResourceState() for concurrent  resource requests.