Skip to content

Comments

Stop service and remove notification if process stops.#101

Closed
caiofaustino wants to merge 3 commits intogreenaddress:masterfrom
caiofaustino:clear-notification
Closed

Stop service and remove notification if process stops.#101
caiofaustino wants to merge 3 commits intogreenaddress:masterfrom
caiofaustino:clear-notification

Conversation

@caiofaustino
Copy link

No description provided.

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 dc1b102

Thanks for this pull request @caiofaustino!

Just a thought, and this doesn't have to be part of this pull request, but if you feel like it, it might also make sense to make sure the UI switch for starting ABCore is set to false when running onDestroy

@caiofaustino
Copy link
Author

Just a thought, and this doesn't have to be part of this pull request, but if you feel like it, it might also make sense to make sure the UI switch for starting ABCore is set to false when running onDestroy

yeah I'm planning on doing another PR to work on the UI switch logic a bit

public void run() {
try {
final int exit = mProcessTor.waitFor();
Log.i(TAG, "Bitcoin process finished - " + exit);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log line should say Tor process finished

Log.i(TAG, "Bitcoin process finished - " + exit);
stopSelf();
} catch (InterruptedException e) {
Log.e(TAG, "Bitcoin InterruptedException", e);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is Tor interrupted

@caiofaustino
Copy link
Author

Fixed logs and renamed mProcess to mBitcoinProcess for clarity.

@greenaddress
Copy link
Owner

This breaks start on a vanilla install for me - immediately dies, without this it doesn't

@caiofaustino
Copy link
Author

What dies? The service and the notification?
I think the issue already exists, my chance only make the visual feedback more clear.

Can you share any logs? I'll investigate more.

@caiofaustino
Copy link
Author

I'll wait on #106 so that I can do some more testings.

@caiofaustino
Copy link
Author

I'm closing this until I finish testing other issues I found that relate to this.

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