Skip to content
Snippets Groups Projects
Commit c872f1a4 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Use loopback in feed

parent 1c05da63
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28095 failed
...@@ -69,10 +69,11 @@ Feed::Feed(nlohmann::json &config, ftl::net::Universe*net) : ...@@ -69,10 +69,11 @@ Feed::Feed(nlohmann::json &config, ftl::net::Universe*net) :
// Send only reponse channels on a per frame basis // Send only reponse channels on a per frame basis
if (f.mode() == ftl::data::FrameMode::RESPONSE) { if (f.mode() == ftl::data::FrameMode::RESPONSE) {
// Remote sources need to use sender, otherwise loopback to local
if (streams_.find(f.frameset()) != streams_.end()) { if (streams_.find(f.frameset()) != streams_.end()) {
sender_->post(f, c); sender_->post(f, c);
} else { } else {
f.forceStore(); receiver_->loopback(f, c);
} }
} }
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment