From 997fff3bb81513408e618aa411a8973f80d32521 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 25 Aug 2011 15:26:57 -0700 Subject: usrp2: manually deconstruct tasks, fixes cleanup bug --- host/lib/usrp/usrp2/io_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index aef3f3a39..70331e536 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -134,6 +134,11 @@ struct usrp2_impl::io_impl{ /* NOP */ } + ~io_impl(void){ + //Manually deconstuct the tasks, since this was not happening automatically. + pirate_tasks.clear(); + } + managed_send_buffer::sptr get_send_buff(size_t chan, double timeout){ flow_control_monitor &fc_mon = *fc_mons[chan]; -- cgit v1.2.3