Get profile operations from nect operations method

4.x.x
manoj 10 years ago
parent f93d710d8e
commit 8e4c181446

@ -143,7 +143,7 @@ public class OperationManagerImpl implements OperationManager {
public Operation getNextPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException { public Operation getNextPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException {
try { try {
Operation operation = operationDAO.getNextOperation(deviceId); Operation operation = operationDAO.getNextOperation(deviceId);
if (operation instanceof ProfileOperation){ if (operation!=null && operation.getType().equals(Operation.Type.PROFILE)){
operation = profileOperationDAO.getNextOperation(deviceId); operation = profileOperationDAO.getNextOperation(deviceId);
} }
return operation; return operation;

Loading…
Cancel
Save