-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot.run does not return when stop is called #517
Comments
How are you starting the bot? Can you provide a minimal working example? And in: self.thread = threading.Thread(target=run, args=()) what is |
Hi,
Output:
|
Thanks, I was able to replicate the error. Seems like there are multiple bugs at play. One fix is now in #518 and will be merged in the future. This allows the bot to stop but there's a more complicated issue behind. At the core of |
Describe the bug
I am currently running the Bot in a different thread via the following code which works well:
How To Reproduce
Give us simple steps to reproduce the behavior:
Expected behavior
I expect for bot.run to return after everything is shutdown internally and the thread to join.
Operating Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: