mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	Correct stopping case
This commit is contained in:
		| @@ -114,7 +114,7 @@ rtl_tcp_signal_source_c::rtl_tcp_signal_source_c(const std::string &address, | |||||||
|        return; |        return; | ||||||
|    } |    } | ||||||
|    std::cout << "Connected to " << addr << ":" << port << std::endl; |    std::cout << "Connected to " << addr << ":" << port << std::endl; | ||||||
|    LOG (WARNING)  << "Connected to " << addr << ":" << port; |    LOG (INFO)  << "Connected to " << addr << ":" << port; | ||||||
|  |  | ||||||
|    // 4. Set nodelay |    // 4. Set nodelay | ||||||
|    socket_.set_option (tcp::no_delay (true), ec); |    socket_.set_option (tcp::no_delay (true), ec); | ||||||
|   | |||||||
| @@ -115,7 +115,7 @@ private: | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     inline bool not_empty ( ) const { |     inline bool not_empty ( ) const { | ||||||
|         return unread_ > 0 && !io_service_.stopped (); |         return unread_ > 0 || io_service_.stopped (); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Anthony Arnold
					Anthony Arnold