I've had the same problem intermittently for several months, starting before I discovered I was diagnosed as type 2, so when I told my doctor he thought it might be a side effect of medication I was using, so changed the medication. I've tried several remedies myself, and found the most effective to be dipping the end of my penis into a small jar of DILUTED T.C.P. My doctor thought this as good a treatment as any. Since being diagnosed and taking medication the occurrence has dropped considerably.