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();