Horny sleep

Okay so last night I was trying to get to sleep and I literally could not sleep for the entire night because I was too horny. Has anyone else had this before? If so how did you stop it? X