Skip to content
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.

Commit

Permalink
[2.4.1] fix behavior when trying to reconnect from disconnection_hand…
Browse files Browse the repository at this point in the history
…ler callback. (Windows)
  • Loading branch information
Cylix committed Apr 30, 2017
1 parent c49c2ba commit b722be2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sources/network/windows/io_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b722be2

Please sign in to comment.