From 083abe66bed69d303179bbf09d0c9bbe4df892b1 Mon Sep 17 00:00:00 2001 From: Gordon McCann Date: Sat, 1 Oct 2022 09:15:51 -0400 Subject: [PATCH] Fixing some bugs in DYClient --- include/NetIO/DYClient.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/NetIO/DYClient.h b/include/NetIO/DYClient.h index 2dfe297..8cb8164 100644 --- a/include/NetIO/DYClient.h +++ b/include/NetIO/DYClient.h @@ -52,7 +52,7 @@ namespace DaqGrimoire { } catch (asio::system_error& e) { - continue; + return; } } @@ -60,7 +60,7 @@ namespace DaqGrimoire { { if (IsConnected()) { - asio::post(m_context, [this]() { m_socket.close(); }) + asio::post(m_context, [this]() { m_socket.close(); }); } m_context.stop();