mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
MultiChannelCommunication: Use generic handleInput
This way redirection, and any other changes we make to the packetizer/dispatch flow, apply to MultiChannelCommunication as well.
This commit is contained in:
@@ -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<Message> msg;
|
||||
if(!decoder->decode(msg, packet))
|
||||
continue; // Error will have been reported from within decoder
|
||||
dispatchMessage(msg);
|
||||
}
|
||||
}
|
||||
handleInput(*vnetPacketizer, payloadBytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user