Merge pull request #5 from morphis/fix-ftbs

Drop not available logging function in rpc message processor
This commit is contained in:
Simon Fels 2016-11-27 16:04:24 +01:00 committed by GitHub
commit 8e4bce8c7b

View file

@ -59,11 +59,8 @@ bool MessageProcessor::process_data(const std::vector<std::uint8_t> &data) {
// If we don't have yet all bytes for a new message return and wait
// until we have all.
if (buffer_.size() - header_size < message_size) {
WARNING("Don't have enough bytes yet (buffer %d header %d message %d)",
buffer_.size(), header_size, message_size);
if (buffer_.size() - header_size < message_size)
break;
}
if (message_type == MessageType::invocation) {
anbox::protobuf::rpc::Invocation raw_invocation;