Yichou / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

Service never stops #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start connectbot
2. Exit connectbot
3. run adb shell dumpsys | grep oom_adj and see oom_adj=  2

What is the expected output? What do you see instead?
I expect oom_adj to be 15

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
r143

Please provide any additional information below.
The patch starts the service in onBind and stops the service in onUnbind if
there are no bridges. The only trick seems to be that onUnbind is only
called once if it returns false.

It also fixes an extra release of the wifilock in onDestroy that was never
called before.

Original issue reported on code.google.com by arm...@gmail.com on 8 Dec 2008 at 7:34

Attachments:

GoogleCodeExporter commented 9 years ago
Should be similar functionality in r144

Original comment by kenny@the-b.org on 11 Dec 2008 at 10:50