Ephedrine boosts norepinephrine, often a plus for libido. But since it's a stimulant, it can tighten blood vessels, potentially causing erection issues—sounds like where you might be stuck.
You've got options: keep taking it or quit for a solid performance. I'd lean toward the latter, but your priorities might differ.