From 8e2883bca9457f475595e4a1c42d87ca53440700 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Fri, 23 Apr 2021 22:34:32 -0400 Subject: [PATCH] MultiChannelCommunication: Use generic handleInput This way redirection, and any other changes we make to the packetizer/dispatch flow, apply to MultiChannelCommunication as well. --- communication/multichannelcommunication.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/communication/multichannelcommunication.cpp b/communication/multichannelcommunication.cpp index 091e927..e8da7c9 100644 --- a/communication/multichannelcommunication.cpp +++ b/communication/multichannelcommunication.cpp @@ -163,14 +163,7 @@ void MultiChannelCommunication::vnetReadTask(size_t vnetIndex) { if(closing) break; - if(vnetPacketizer->input(payloadBytes)) { - for(const auto& packet : vnetPacketizer->output()) { - std::shared_ptr msg; - if(!decoder->decode(msg, packet)) - continue; // Error will have been reported from within decoder - dispatchMessage(msg); - } - } + handleInput(*vnetPacketizer, payloadBytes); } } } \ No newline at end of file