|
|
@ -582,9 +582,11 @@ public class AndroidDeviceUtils {
|
|
|
|
throws DeviceManagementException {
|
|
|
|
throws DeviceManagementException {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
List<? extends Operation> pendingOperations = getPendingOperations(deviceIdentifier);
|
|
|
|
List<? extends Operation> pendingOperations = getPendingOperations(deviceIdentifier);
|
|
|
|
for (Operation operation : pendingOperations) {
|
|
|
|
if (pendingOperations != null && !pendingOperations.isEmpty()) {
|
|
|
|
operation.setStatus(Operation.Status.ERROR);
|
|
|
|
for (Operation operation : pendingOperations) {
|
|
|
|
AndroidAPIUtils.getDeviceManagementService().updateOperation(deviceIdentifier, operation);
|
|
|
|
operation.setStatus(Operation.Status.ERROR);
|
|
|
|
|
|
|
|
AndroidAPIUtils.getDeviceManagementService().updateOperation(deviceIdentifier, operation);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (OperationManagementException e) {
|
|
|
|
} catch (OperationManagementException e) {
|
|
|
|
String msg = "Error occurred while retrieving pending operations to update operation statuses of " +
|
|
|
|
String msg = "Error occurred while retrieving pending operations to update operation statuses of " +
|
|
|
|