From 0486af78635bfa81bff2afcb521c5079b15863db Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Sat, 24 Oct 2015 01:11:32 +0200 Subject: [PATCH] Wireshark: ignore unkown input --- lib/wireshark_connector_impl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wireshark_connector_impl.cc b/lib/wireshark_connector_impl.cc index adb0df3..6f48bea 100644 --- a/lib/wireshark_connector_impl.cc +++ b/lib/wireshark_connector_impl.cc @@ -180,7 +180,8 @@ wireshark_connector_impl::general_work(int noutput, gr_vector_int& ninput_items, dout << "message length " << pmt::blob_length(pmt::cdr(msg)) << std::endl; handle_pdu(msg); } else { - throw std::invalid_argument("wireshark connector expects PDUs"); + dout << "WIRESHARK: ignoring message" << std::endl; + return 0; } }