Getting over an EX

It’s been like 6 months and I still think about him a lot... I don’t want to date him but sometimes when I get lonely I start to think about messaging him again (he was abusive)