Becoming dependent on masturbation??

Alright y'all, lately, for about a week or so?? I've been having a really hard time falling asleep, and the only thing that seems to work is to masturbate to completion, and now I've become dependent on it every night, if I don't do it I just can't seem to fall asleep. Has anyone else been through this or been able to break the cycle?? I want to be able to masturbate for pleasure again, not as a chore :(