depression ruins mood

ive been dealing with anxiety and constant dread for a while now and whenever i try to masturbate i get annoyed at myself and cant relax and begin to spiral and start this self deprecating rant in my head so... how do you stop