Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Jan 2, 2025
1 parent 2640da1 commit 2dcec67
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions library/src/interactor_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1142,18 +1142,16 @@ bool interactor_impl::playInteraction(
log::error("Interaction record file to play does not exist ", file.string());
return false;
}
else
{
// Make sure the recorder is off and streams are cleared
this->Internals->Recorder->Off();
this->Internals->Recorder->Clear();

this->Internals->StartEventLoop(loopTime, std::move(userCallBack));
this->Internals->Recorder->SetFileName(file.string().c_str());
this->Internals->Recorder->Play();
// Make sure the recorder is off and streams are cleared
this->Internals->Recorder->Off();
this->Internals->Recorder->Clear();

this->Internals->StartEventLoop(loopTime, std::move(userCallBack));
this->Internals->Recorder->SetFileName(file.string().c_str());
this->Internals->Recorder->Play();

this->Internals->StopEventLoop();
}
this->Internals->StopEventLoop();
}
catch (const std::filesystem::filesystem_error& ex)
{
Expand Down

0 comments on commit 2dcec67

Please sign in to comment.