Sounds like now is a good time to really think about the circumstances and feelings you were experiencing that led up to you opening this door again. You may have mentioned that you were not getting back together but your actions tell a different story.
Most importantly, however, is to not beat yourself up for this lapse. Self-shaming never leads to positive growth.