#๐ How to fix a twice program launch when i click on stop button
9 messages ยท Page 1 of 1 (latest)
@plucky solstice
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
does it happen also after the bot finishes launching and you hit stop?
because right now I believe the stop button tries to do a graceful shutdown instead of killing the process
and that graceful shutdown attempt happens in the middle of login, so the lib sees login as interrupted and tries again - hence the repeated log
and then only after another hit to the stop button, it stops re-trying
Yes, its happened in everythings staates of my bot
it's still possible the main loop sees that as just disconnection ๐ค I don't know how the stop button tries to stop the program - what signal it sends
did you try to go to the console it's running in and hitting ctrl+c? that should be something that kills the script instantly, it's not-so-graceful shutdown, lol
Maybe i can solve it by creating a new project?
if you use the exact same lib, the exact same thing will happen - because it's something about how the stop is being sent vs how the lib interprets it
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.