MultiChannelCommunication: Use generic handleInput

This way redirection, and any other changes we
make to the packetizer/dispatch flow, apply to
MultiChannelCommunication as well.
pull/35/head
Paul Hollinsky 2021-04-23 22:34:32 -04:00
parent f8355df770
commit 8e2883bca9
1 changed files with 1 additions and 8 deletions

View File

@ -163,14 +163,7 @@ void MultiChannelCommunication::vnetReadTask(size_t vnetIndex) {
if(closing) if(closing)
break; break;
if(vnetPacketizer->input(payloadBytes)) { handleInput(*vnetPacketizer, payloadBytes);
for(const auto& packet : vnetPacketizer->output()) {
std::shared_ptr<Message> msg;
if(!decoder->decode(msg, packet))
continue; // Error will have been reported from within decoder
dispatchMessage(msg);
}
}
} }
} }
} }