Correct synchronization in httpGet.