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

fix overflow problem #1298

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

fix overflow problem #1298

wants to merge 4 commits into from

Conversation

sriharivishnu
Copy link
Contributor

When switching from a long running task that has not terminated, there are often errors when the output from the last command are carried over to a new fragment.
Example : ServicesFragment (treehouses remote allservices) -> StatusFragment

#734 uses delimiters to find when a command has started and ended, and keeps a queue of commands in progress.

This PR solves the issue by killing all running commands by sending a special command to the bluetooth server when switching fragments (Specifically, called in the OnDestroyView of BaseFragment).

Bluetooth branch required:

treehouses upgrade bluetooth multithread
treehouses bluetooth restart

should work; otherwise, manually copy server.py into /usr/local/bin/bluetooth-server.py

rrijal53
rrijal53 previously approved these changes Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants