Skip to content

Commit 5733e4b

Browse files
committed
revert bug fix in the mainline.
Signed-off-by: Tomoya.Fujita <tomoya.fujita825@gmail.com>
1 parent ece5682 commit 5733e4b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ddspipe_core/src/cpp/communication/rpc/RpcBridge.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ void RpcBridge::transmit_(
296296
std::unique_ptr<IRoutingData> data;
297297
utils::ReturnCode ret = reader->take(data);
298298

299+
RpcPayloadData& rpc_data = dynamic_cast<RpcPayloadData&>(*data);
300+
301+
299302
// Will never return \c RETCODE_NO_DATA, otherwise would have finished before
300303
if (!ret)
301304
{
@@ -307,8 +310,6 @@ void RpcBridge::transmit_(
307310
continue;
308311
}
309312

310-
RpcPayloadData& rpc_data = dynamic_cast<RpcPayloadData&>(*data);
311-
312313
if (RpcTopic::is_request_topic(reader->topic()))
313314
{
314315
logDebug(DDSPIPE_RPCBRIDGE,

0 commit comments

Comments
 (0)