From b722be274913e0b7add12eabdb35c673bd09bc31 Mon Sep 17 00:00:00 2001 From: Simon Ninon Date: Sun, 30 Apr 2017 14:56:48 -0700 Subject: [PATCH] [2.4.1] fix behavior when trying to reconnect from disconnection_handler callback. (Windows) --- sources/network/windows/io_service.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sources/network/windows/io_service.cpp b/sources/network/windows/io_service.cpp index 8d58561..300ec29 100644 --- a/sources/network/windows/io_service.cpp +++ b/sources/network/windows/io_service.cpp @@ -234,9 +234,10 @@ io_service::track(const tcp_socket& socket, const event_callback_t& rd_callback, __TACOPIE_LOG(debug, "track new socket"); - auto& track_info = m_tracked_sockets[socket.get_fd()]; - track_info.rd_callback = rd_callback; - track_info.wr_callback = wr_callback; + auto& track_info = m_tracked_sockets[socket.get_fd()]; + track_info.rd_callback = rd_callback; + track_info.wr_callback = wr_callback; + track_info.marked_for_untrack = false; m_notifier.notify(); }