Merge "Avoid onServiceDisconnected() for unbind Service"

This commit is contained in:
Treehugger Robot
2018-07-23 17:27:13 +00:00
committed by Gerrit Code Review

View File

@@ -705,11 +705,13 @@ final class RemotePrintSpooler {
@Override @Override
public void onServiceDisconnected(ComponentName name) { public void onServiceDisconnected(ComponentName name) {
synchronized (mLock) { synchronized (mLock) {
if (mRemoteInstance != null) {
clearClientLocked(); clearClientLocked();
mRemoteInstance = null; mRemoteInstance = null;
} }
} }
} }
}
private static final class GetPrintJobInfosCaller private static final class GetPrintJobInfosCaller
extends TimedRemoteCaller<List<PrintJobInfo>> { extends TimedRemoteCaller<List<PrintJobInfo>> {