Skip to content

Commit

Permalink
wait for a reply for dds-device open-streams
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Oct 24, 2023
1 parent 64cd29a commit 4640f37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion third-party/realdds/src/dds-device-impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,12 @@ void dds_device::impl::open( const dds_stream_profiles & profiles )
{ "stream-profiles", stream_profiles },
};

write_control_message( j );
nlohmann::json reply;
write_control_message( j, &reply );

if( rsutils::json::get( reply, status_key, status_ok ) != status_ok )
throw std::runtime_error( "failed to open stream: "
+ rsutils::json::get< std::string >( reply, explanation_key, "no explanation" ) );
}


Expand Down

0 comments on commit 4640f37

Please sign in to comment.