Look as long as you can at the friend you love, no matter whether that friend is moving away from you or coming back toward you.
The only thing that feeling bad accomplishes is to plummet you into anxiety, despair, depression, and stress. In such situations, ask yourself in that moment what THOUGHT you can have that will make you feel GOOD!