message: fixed other step modes for wdm
diff: @@ -148,15 +148,22 @@ StepStatus WdmReader::BeginStep(const StepMode stepMode,
  while (vars == nullptr)
  {
  - if (BeginStepIterator(stepMode, vars) == StepStatus::OK)
  + auto stepStatus = BeginStepIterator(stepMode, vars);
  + if (stepStatus == StepStatus::OK)
  {
  m_RetryTimes = 0;
  break;
  }
  + else if (stepStatus == StepStatus::EndOfStream)
  + {
  + return StepStatus::EndOfStream;
  + }
  + if (timeoutSeconds >= 0)
  + {
  auto nowTime = std::chrono::system_clock::now();
  auto duration = std::chrono::duration_cast<std::chrono::seconds>(
  nowTime - startTime);
  - if (duration.count() > timeoutSeconds && timeoutSeconds >= 0)
  + if (duration.count() > timeoutSeconds)
  {
  Log(5,
  "WdmReader::BeginStep() returned EndOfStream because of "
  @@ -164,6 +171,12 @@ StepStatus WdmReader::BeginStep(const StepMode stepMode,
  true, true);
  return StepStatus::EndOfStream;
  }
  + else
  + {
  + Log(5, "WdmReader::BeginStep() returned NotReady.", true, true);
  + return StepStatus::NotReady;
  + }
  + }
  }
  for (const auto &i : *vars)
  