Overall, a big part of handling these mental issues is learning to recognize and deal with the unhelpful thinking that sustains them. Feeling even a bit depressed can cause you to view your life through a more hopeless, negative filter.
If you've made some attempts to make friends and they haven't panned out that can also leave you feeling discouraged.
How to get out of this pattern if you're in it: The most important thing to realize is that having a slow social life is nothing to be embarrassed about.
It happens to many people at one point or another in their lives.
Once someone has been socially lonely for a while there are some thinking patterns and behaviors they tend to slip into that make it harder for them to get out of their isolation.