[hamradio-commits] [gnss-sdr] 92/251: Correct stopping case

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Wed Sep 2 00:22:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.

commit 322a8124472a447eab834a6aed3397f3ef102be6
Author: Anthony Arnold <anthony.arnold at uqconnect.edu.au>
Date:   Fri May 15 19:59:21 2015 +1000

    Correct stopping case
---
 src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.cc | 2 +-
 src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.cc b/src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.cc
index bc4bf51..0a72494 100644
--- a/src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.cc
+++ b/src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.cc
@@ -114,7 +114,7 @@ rtl_tcp_signal_source_c::rtl_tcp_signal_source_c(const std::string &address,
        return;
    }
    std::cout << "Connected to " << addr << ":" << port << std::endl;
-   LOG (WARNING)  << "Connected to " << addr << ":" << port;
+   LOG (INFO)  << "Connected to " << addr << ":" << port;
 
    // 4. Set nodelay
    socket_.set_option (tcp::no_delay (true), ec);
diff --git a/src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.h b/src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.h
index ca3a696..0833cba 100644
--- a/src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.h
+++ b/src/algorithms/signal_source/gnuradio_blocks/rtl_tcp_signal_source_c.h
@@ -115,7 +115,7 @@ private:
     }
 
     inline bool not_empty ( ) const {
-        return unread_ > 0 && !io_service_.stopped ();
+        return unread_ > 0 || io_service_.stopped ();
     }
 
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list