 
       if not taskId
         nextTask(sessionId, deviceId, response, cookies)
-        return
       else
         memcached.get(taskId, (err, task) ->
           runTask(sessionId, deviceId, task, reqParams, response)


  if Object.keys(resParams).length > 0
    memcached.set(String(task._id), task, config.CACHE_DURATION, (err, result) ->
      res = tr069.response(reqParams.sessionId, resParams, {task : String(task._id)})
      writeResponse response, res
    )
    return

          util.log("#{deviceId}: inform (#{reqParams.eventCodes}); retry count #{reqParams.retryCount}")

        updateDevice(deviceId, {'inform' : true, 'parameterValues' : reqParams.informParameterValues}, (err) ->
          res = tr069.response(sessionId, resParams, cookies)
          writeResponse response, res
        )
        return
