Skip to content

Commit

Permalink
-- add handler before informing the time provider implementation abou…
Browse files Browse the repository at this point in the history
…t it
  • Loading branch information
VDanielEdwards committed Nov 28, 2023
1 parent ad87b85 commit 84597ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SilKit/source/services/orchestration/TimeProvider.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ auto TimeProvider::TimeProviderName() const -> const std::string&
HandlerId TimeProvider::AddNextSimStepHandler(NextSimStepHandler handler)
{
std::unique_lock<decltype(_mutex)> lock{_mutex};
const auto handlerId{_handlers.Add(std::move(handler))};
_currentProvider->OnHandlerAdded();
return _handlers.Add(std::move(handler));
return handlerId;
}

void TimeProvider::RemoveNextSimStepHandler(HandlerId handlerId)
Expand Down

0 comments on commit 84597ef

Please sign in to comment.