Fix simultaneous client connection bug.