Problem with a project: Your app is taking a while to stop

Hi. I have a project on Glitch, a bot for Discord. My project has been inactive for about 5 minutes and it appeared in the logs:

Your app is taking a while to stop...

What is this error and how do I fix it?

Hi, welcome to the community!

I’m not a Discord expert but it looks like your app is doing something in the background for a long time or holding onto a resource.

To fix it, I think you should try to manually restart your site. Open the Glitch Console with the Tools button (bottom left) then Terminal. Type refresh and hit Enter.

Here is a similar problem and the solution I just mentioned, along with some other ideas: