Browse Source

Merge pull request #1041 from majestrate/fix-streaming-race

fix race condition
pull/1043/merge
orignal 7 years ago committed by GitHub
parent
commit
ca49944c85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libi2pd/Streaming.h

2
libi2pd/Streaming.h

@ -336,7 +336,7 @@ namespace stream @@ -336,7 +336,7 @@ namespace stream
auto s = shared_from_this();
m_Service.post ([=](void)
{
if (!m_ReceiveQueue.empty () || m_Status == eStreamStatusReset)
if (!s->m_ReceiveQueue.empty () || s->m_Status == eStreamStatusReset)
s->HandleReceiveTimer (boost::asio::error::make_error_code (boost::asio::error::operation_aborted), buffer, handler, 0);
else
{

Loading…
Cancel
Save