Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da38e58d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove stale connections to DataLoaders." into tm-qpr-dev

parents b3ec2ce0 96cac56f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2816,6 +2816,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");
    }