Skip to content

Conversation

@caiofaustino
Copy link

@caiofaustino caiofaustino commented Dec 20, 2019

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.

@caiofaustino
Copy link
Author

Issue 2 is being addressed in #108

@caiofaustino
Copy link
Author

@udiWertheimer start here plz =P

Copy link
Contributor

@udiWertheimer udiWertheimer left a 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!

@lvaccaro
Copy link
Collaborator

lvaccaro commented Jan 19, 2020

nit: in the stop case, status label is updated to "STOPPED" but switch is still ON, is it right?
if I try to swift OFF, in the log: E/com.greenaddress.abcore.RPCIntentService: daemon not responding, already stopped

@caiofaustino
Copy link
Author

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.

@lvaccaro
Copy link
Collaborator

ack 932175e

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.

4 participants