How are hydrogen atoms electrostatically stable?

No.12011673 ViewReplyOriginalReport
If the proton and electron of a hydrogen atom are electrostatically attracted to each other, why doesn't the electron spiral inward to the nucleus and stick to the proton, collapsing the atom?
There is clearly electrostatic potential energy from the 2 charged particles bring distant to one another and so bringing them closer would release energy rather than requiring energy.