Merge "Avoid onServiceDisconnected() for unbind Service"

am: a37c252248

Change-Id: I825afa6ce1a341f37687fb453a1eeda1ad19ae86
This commit is contained in:
Gopal Krishna Shukla
2018-07-23 12:10:57 -07:00
committed by android-build-merger

View File

@@ -708,8 +708,10 @@ final class RemotePrintSpooler {
@Override
public void onServiceDisconnected(ComponentName name) {
synchronized (mLock) {
clearClientLocked();
mRemoteInstance = null;
if (mRemoteInstance != null) {
clearClientLocked();
mRemoteInstance = null;
}
}
}
}