diff --git a/include/libnetwrk/net/core/shared/shared_context.hpp b/include/libnetwrk/net/core/shared/shared_context.hpp index 86bdb64..9af2e89 100644 --- a/include/libnetwrk/net/core/shared/shared_context.hpp +++ b/include/libnetwrk/net/core/shared/shared_context.hpp @@ -54,6 +54,8 @@ namespace libnetwrk { } void start_io_context() { + io_context.reset(); + m_io_context_thread = std::thread([this] { this->io_context.run(); });