Fix bug incorrect task was checked

This commit is contained in:
nsubiron 2018-02-26 18:02:11 +01:00
parent dee61fc1c4
commit 2d7c59b33f
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ namespace server {
error_code AgentServer::WriteMeasurements(const carla_measurements &measurements) {
error_code ec;
if (!_control.TryGetResult(ec)) { /// @todo Why _control here?? is it a bug?
if (!_measurements.TryGetResult(ec)) {
auto writer = _measurements.buffer()->MakeWriter();
writer->Write(measurements, _sensor_inbox);
ec = errc::success();