Correct the operationID in resetUsbPort

Fixed the operationID when the operationID collisions, create another key

Bug: 217369748
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I22126b4c04b5c92bc9fc9db7405e7ee9d2806b49
This commit is contained in:
Ricky Niu
2022-03-22 16:50:42 +08:00
committed by Chien Kun Niu
parent c037af53ba
commit 01f255bbf3

View File

@@ -296,8 +296,8 @@ public final class UsbPortAidl implements UsbPortHal {
+ operationID + " key:" + key);
}
try {
sCallbacks.put(operationID, callback);
mProxy.resetUsbPort(portName, operationID);
sCallbacks.put(key, callback);
mProxy.resetUsbPort(portName, key);
} catch (RemoteException e) {
logAndPrintException(mPw,
"resetUsbPort: Failed to resetUsbPort: portID="