From b375370d0f11163da8cb752c4a3f992a89ef80ee Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Tue, 16 Apr 2019 18:38:07 +0200 Subject: [HICN-178] Sync send of control messages. Change-Id: I9a07c6c806ceba10f80a5f67337dce2eee76120d Signed-off-by: Mauro Sardara --- utils/src/hiperf.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/src') diff --git a/utils/src/hiperf.cc b/utils/src/hiperf.cc index ddc79d520..681696dbf 100644 --- a/utils/src/hiperf.cc +++ b/utils/src/hiperf.cc @@ -467,6 +467,7 @@ class HIperfClient { void readError(const std::error_code ec) noexcept override { std::cerr << "Error while reading from RTC socket" << std::endl; + client_.io_service_.stop(); } void readSuccess(std::size_t total_size) noexcept override { @@ -509,6 +510,7 @@ class HIperfClient { void readError(const std::error_code ec) noexcept override { std::cerr << "Error " << ec.message() << " while reading from socket" << std::endl; + client_.io_service_.stop(); } void readSuccess(std::size_t total_size) noexcept override { -- cgit 1.2.3-korg