What do you do when you get discouraged about writing?

What do you do when you’re discouraged and wondering if you should keep writing?