I masturbate when I can't sleep

Joie
On nights like tonight when I can't sleep I tend to masturbate. I orgasm pretty easily but even after sometimes I still can't sleep. It can be really frustrating lol does anyone else have this problem?