Hello,
As one of my apps seems to cause issues after running for a while possibly caused by the streaming buffering. The app or entire phone becomes sluggish when that happend and a task kill and restart solves it and it doesn't require a full device restart.
I thought about resetting the services once every few hours.
As I don't want to lose the current active connections so that I can reconnect to them again I thought about...
1. pulling the connections map into the watchdog service
2. let the watchdog service stop the services and restart the services
3. set the connections map back so that it reconnects again (in the watchdog or resetted service)
but this doesn't seem to work as I hoped.
when I log the size of the original service.map and the watchdog.map they are equal before and after stop and start which seems that the stop is something that's running in the background and it's not waited for? The destory hits at a later point according to my logs.
Anyway...
When I check the watchdog.map size in the service_create or service_start it's suddenly 0 again.
Is there straight method that makes me do what I want without the need to save the map to a file and all that?
As one of my apps seems to cause issues after running for a while possibly caused by the streaming buffering. The app or entire phone becomes sluggish when that happend and a task kill and restart solves it and it doesn't require a full device restart.
I thought about resetting the services once every few hours.
As I don't want to lose the current active connections so that I can reconnect to them again I thought about...
1. pulling the connections map into the watchdog service
2. let the watchdog service stop the services and restart the services
3. set the connections map back so that it reconnects again (in the watchdog or resetted service)
but this doesn't seem to work as I hoped.
when I log the size of the original service.map and the watchdog.map they are equal before and after stop and start which seems that the stop is something that's running in the background and it's not waited for? The destory hits at a later point according to my logs.
Anyway...
When I check the watchdog.map size in the service_create or service_start it's suddenly 0 again.
Is there straight method that makes me do what I want without the need to save the map to a file and all that?