You can become aware of the reality of his indifference or dislike for you. You do it by observing his behavior rather than his words. And you allow his behaviors to generate the emotions you require. You can better calibrate yourself and walk away once you feel these required feelings.