Merge "Remove stale connections to DataLoaders."
This commit is contained in:
committed by
Android (Google) Code Review
commit
632846fd0f
@@ -2831,6 +2831,12 @@ bool IncrementalService::DataLoaderStub::fsmStep() {
|
||||
|
||||
binder::Status IncrementalService::DataLoaderStub::onStatusChanged(MountId mountId, int newStatus) {
|
||||
if (!isValid()) {
|
||||
if (newStatus == IDataLoaderStatusListener::DATA_LOADER_BOUND) {
|
||||
// Async "bound" came to already destroyed stub.
|
||||
// Unbind immediately to avoid invalid stub sitting around in DataLoaderManagerService.
|
||||
mService.mDataLoaderManager->unbindFromDataLoader(mountId);
|
||||
return binder::Status::ok();
|
||||
}
|
||||
return binder::Status::
|
||||
fromServiceSpecificError(-EINVAL, "onStatusChange came to invalid DataLoaderStub");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user