diff options
author | Andy Sloane <andy@a1k0n.net> | 2016-04-18 08:49:26 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-04-25 15:35:40 -0700 |
commit | 403a41671d8b867e6ed68e3eeb81e57766c7cc32 (patch) | |
tree | 049c94dcd6d7b375123ce731fd3cbd39a02b2713 /gr-blocks/lib/udp_sink_impl.cc | |
parent | 7c3b32fe802f65e70ccfeeb5e6912b75b78ffa65 (diff) |
udp sink: actually send 0-byte packets at EOF
Adjusted udp source to expect a 0-byte packet at EOF too.
Diffstat (limited to 'gr-blocks/lib/udp_sink_impl.cc')
-rw-r--r-- | gr-blocks/lib/udp_sink_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/udp_sink_impl.cc b/gr-blocks/lib/udp_sink_impl.cc index 6989fdb27c..b540a7da19 100644 --- a/gr-blocks/lib/udp_sink_impl.cc +++ b/gr-blocks/lib/udp_sink_impl.cc @@ -99,7 +99,7 @@ namespace gr { gr::thread::scoped_lock guard(d_mutex); // protect d_socket from work() // Send a few zero-length packets to signal receiver we are done - boost::array<char, 1> send_buf = {{ 0 }}; + boost::array<char, 0> send_buf; if(d_eof) { int i; for(i = 0; i < 3; i++) |