Skip to content
Snippets Groups Projects
Commit 7de295b8 authored by Jonas Roemer's avatar Jonas Roemer
Browse files

Set cached remote endpoint immediately

* Otherwise certain abortOpen calls may not have the remote endpoint
  cached
parent 06ef8188
No related branches found
No related tags found
No related merge requests found
Pipeline #12277710 passed
......@@ -88,6 +88,7 @@ Session::~Session()
void Session::asyncOpen(const std::string& localName,
const boost::asio::ip::tcp::endpoint& remoteEndpoint)
{
m_cachedRemoteEndpoint = remoteEndpoint;
auto self = shared_from_this();
m_strand.dispatch(
[this, self, localName, remoteEndpoint] () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment