From 7bf5d07e945ea582a816a084c4d95192c580c418 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Thu, 28 Apr 2016 17:04:50 +0200 Subject: [PATCH] wireshark: don't block waiting for messages --- lib/wireshark_connector_impl.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/wireshark_connector_impl.cc b/lib/wireshark_connector_impl.cc index a015420..a5925f0 100644 --- a/lib/wireshark_connector_impl.cc +++ b/lib/wireshark_connector_impl.cc @@ -181,11 +181,7 @@ wireshark_connector_impl::general_work(int noutput, gr_vector_int& ninput_items, gr_complex *out = (gr_complex*)output_items[0]; if(!d_msg_len) { -#ifdef GR_FOO_NEW_API - pmt::pmt_t msg(delete_head_blocking(pmt::mp("in"), 100)); -#else - pmt::pmt_t msg(delete_head_blocking(pmt::mp("in"))); -#endif + pmt::pmt_t msg(delete_head_nowait(pmt::mp("in"))); if(!msg) { return 0;