-
Notifications
You must be signed in to change notification settings - Fork 61
Avoid infinite loop if daemon is not responding. #106
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
base: master
Are you sure you want to change the base?
Conversation
40b69ca to
b1b87bd
Compare
b1b87bd to
a64cf6c
Compare
|
Issue 2 is being addressed in #108 |
|
@udiWertheimer start here plz =P |
udiWertheimer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested ACK 932175e
Nice work, thanks!
|
nit: in the stop case, status label is updated to "STOPPED" but switch is still ON, is it right? |
|
Not right per say, but if I toggle the switch to OFF it triggers the logic to tell the daemon to stop again. I thought best to have this and #108 fixed before changing the logic in the MainActivity. |
|
ack 932175e |
After some tests I found 2 sources of issues.
1 - If the daemon stops and after that the RPC gets a stop command, it enters an infinite loop of calling stop
@greenaddress do you know why this loop was introduced? Is it really necessary?
2 - getNetworkInfo() might get stuck, causing the Service also get stuck and to not respond to new requests. I still need to investigate this one better so I just added a TODO for now.