Thoroughly convinced of the impossibility of his own suit, a high resolve constrained him not to injure that of another. This is a lover's most stoical virtue, as the lack of it is a lover's most venial sin.
You simply mean that you flirted outrageously with him, poor old chap, and then repented, and to make reparation, married him, though you tortured yourself to death by doing it.