I have found that tensing my body and flexing my muscles is effective for killing inconvenient boners. I assume this is because blood flowing into the penis causes it to stand. Flexing my muscles requires blood to flow away from the dick to the places being flexed.

This method works most of the time.

This has been today's public service announcement.