diff --git a/client/cpp/framer/streamer.cpp b/client/cpp/framer/streamer.cpp index cbc500b97d..7e0cc0ca4b 100644 --- a/client/cpp/framer/streamer.cpp +++ b/client/cpp/framer/streamer.cpp @@ -28,7 +28,7 @@ std::pair FrameClient::openStreamer( auto req = api::v1::FrameStreamerRequest(); config.toProto(req); auto exc2 = s->send(req); - if (exc2) {Streamer(std::move(s)), exc2}; + if (exc2) return {Streamer(std::move(s)), exc2}; auto [_, resExc] = s->receive(); return {Streamer(std::move(s)), resExc}; }