You can try to busy yourself in ways that take your mind off of a patricular person by delving into a sport or physical exercise with other friends.
If you find it getting worse then I would suggest you speak to a professional.