fixed problem with timed out client infinity loop