Connection spec: Fixed race condition in Threads