TorProcess says the SOCKS port is not valid even though it is

It keeps checking the control port, instead of the SOCKS port.