He’s giving mixed signals

I am so mad at myself that I keep entertaining this guy. He gives mixed signals, seems confused and just keeps coming back. I allow him back in every single time because I think “he’s ready”. I officially cut It off 7 months ago saying I’m looking for something serious, he said he’s not so we went on with our lives. Over the last month he has contacted me many times and is still giving mixed signals. I wish I never answered. Does anyone have advice on how to stick to keeping the door closed and to stop thinking he’s finally “ready”?