Last commit before changing SocketThread.run (boolean) to SocketThread.state (int)