ExecutionControl::unsubscribe() comment disagreement with code
simtheverse opened this issue · comments
simtheverse commented
TrickHLA/source/SpaceFOM/ExecutionControl.cpp
Lines 477 to 483 in af2df5e
Lines 480 and 481 seem to contradict each other. I am reading the implementation to be: Unsubscribe from the execution configuration if we ARE the Master federate.
Awesome project, thanks!
Dan Dexter commented
Yes, this is a bug. The check needs to be for if this federate is not the master. Thank you for your bug report.
Dan Dexter commented
Fixed and tested.