What I do to get over it (mine), is constantly try to be involved with other things, as I've figured out that really talking to friends or others, and doing activities with them, actually relieves whatever you're going for.
It can be VERY hard to stop a bad habit, and sometimes it can be close to impossible for a long amount of time.
Try not to do anything related to it, or it WILL come back immediately.