How to prevent a boner when cuddling?

Hey uhm… i am a damn idiot for even asking. So my best friend and i do a lot of friendship cuddling. Very close cuddling. And often times i get a boner from it. I dont want my boner to touch her, that makes me very uncomfortable and also i think it would make her very uncomfortable too. What can i do?