Skip to content
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

Allow stopping the MQTT thread early #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tvogel
Copy link

@tvogel tvogel commented Nov 26, 2023

SharingMQ.run():
use Event.wait() instead of time.sleep() such that setting the flag also
stops the sleep;
there is no way to stop time.sleep() in a secondary thread and waiting
two hours for _stop_event to take effect is too long;

SharingMQ.run():
use Event.wait() instead of time.sleep() such that setting the flag also
	stops the sleep;
there is no way to stop time.sleep() in a secondary thread and waiting
	two hours for _stop_event to take effect is too long;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant