Reprogramming my negative thoughts

Last time i was able to get it up. But thought that it was not enough for me to have sex. I think i am future telling and over generalizing my thoughts. There is no logic in what i am thinking in first place.