fixed race condition

This commit is contained in:
orignal 2015-01-11 21:00:38 -05:00
parent 6683a9cf76
commit a85cc6aa77
4 changed files with 12 additions and 4 deletions

View file

@ -828,7 +828,8 @@ namespace transport
void SSUSession::SendI2NPMessage (I2NPMessage * msg)
{
m_Server.GetService ().post (std::bind (&SSUSession::PostI2NPMessage, shared_from_this (), msg));
boost::asio::io_service& service = IsV6 () ? m_Server.GetServiceV6 () : m_Server.GetService ();
service.post (std::bind (&SSUSession::PostI2NPMessage, shared_from_this (), msg));
}
void SSUSession::PostI2NPMessage (I2NPMessage * msg)