Merge "Avoid onServiceDisconnected() for unbind Service" am: a37c252248 am: c38e0f19c1

am: 2a126b05a2

Change-Id: I07e998923f88b3dd6b3c53ed74b0ed7deb14c08c
This commit is contained in:
Gopal Krishna Shukla
2018-07-23 12:34:53 -07:00
committed by android-build-merger

View File

@@ -708,11 +708,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>> {