Ruined orgasm after edging

I was edging for about an hour or so. I got to the point I couldn’t hold myself back and had an accidental orgasm.