254{
255 try {
256 auto command_copy {std::make_shared<std::string>(lr_ipc_out_shared->command_.pop())};
257 if (*command_copy == kTerminate) [[unlikely]] { return; }
258 if (command_copy->empty() || command_copy->back() != '\n') [[unlikely]] {
259 command_copy->push_back('\n');
260 }
261 asio::async_write(lr_ipc_out_shared->socket_, asio::buffer(*command_copy),
262 [command_copy, lr_ipc_out_shared](const asio::error_code& error, std::size_t) mutable {
263 if (!error) [[likely]] { SendOut(std::move(lr_ipc_out_shared)); }
264 else {
265 rsj::Log(fmt::format(FMT_STRING("LR_IPC_Out Write: {}."), error.message()),
266 std::source_location::current());
267 }
268 });
269 }
270 catch (const std::exception& e) {
272 throw;
273 }
274}
void ExceptionResponse(gsl::czstring id, gsl::czstring fu, const std::exception &e) noexcept