-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
ensure TorService properly shuts down whenever the tor thread stops #65
ensure TorService properly shuts down whenever the tor thread stops #65
Conversation
Also, working on this made me think: what happens when |
The static lock is shared by TorService instances within the same process. |
This unnests the try/finally block that was added in pull guardianproject#59, and moves it to the main try block, where it now handles the whole shutdown procedure. * guardianproject#61 (comment) * guardianproject#57 * guardianproject#59
583ae1b
to
9d9bab1
Compare
After applying this commit, Orbot no longer shuts down |
12-21 20:31:28.753 8596 8596 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed. |
I believe this is the same as
#67 or is it something
different?
|
I believe it is something different, because I did not have this issue with 0.4.6.8. This just started happening with 0.4.6.9. |
Orbot isn't using 0.4.6.9, at least not my official RC build. We are still using .8 |
I am using my own build of tor-android with latest Orbot tag. I just confirmed that this commit is causing the issue by reverting it. |
The way I reproduce the issue is start Orbot (select onion), then stop Orbot (select onion). Then Orbot gets stuck and I have to kill the process to start Orbot again. |
I also wanted to mention that this PR (guardianproject/orbot#561) does not fix this issue with Orbot |
This unnests the try/finally block that was added in pull #59, and moves it to the main try block, where it now handles the whole shutdown procedure.
@grote @akwizgran
The intention of this is probably easier to see when the diff starts from before 09de98d in #59: