#๐Ÿ”’ How to fix a twice program launch when i click on stop button

9 messages ยท Page 1 of 1 (latest)

warm groveBOT
#

@plucky solstice

Python help channel opened

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.

plucky solstice
tropic oxide
#

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

plucky solstice
tropic oxide
#

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

plucky solstice
tropic oxide
#

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

warm groveBOT
#
Python help channel closed

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.