When life is good, gym is good.

When I got a lot on my mind, I keep thinking about problems in the gym, needless to say performance sucks. When I got a bunch of problems I also don't feel like working out at all. At one point I just stop going for a couple months.

This has always been the cause for.my extended gym absence.

Has anyone found a way to be consistent despite all the life shit?