Because dependencies are created and started in onStart() method of a caller subsystem, they should be stopped and destroyed in the symmetrical onStopped() method of the same caller. They are currently stopped and destroyed in the onStop() method, which can generate errors in the caller's process when using a dependency, either through polling or concurrent query.
Because dependencies are created and started in onStart() method of a caller subsystem, they should be stopped and destroyed in the symmetrical onStopped() method of the same caller. They are currently stopped and destroyed in the onStop() method, which can generate errors in the caller's process when using a dependency, either through polling or concurrent query.