fixed race condition

This commit is contained in:
orignal 2014-10-13 12:33:51 -04:00
parent a0f43d9772
commit b74f3a1ee1
2 changed files with 20 additions and 12 deletions

View file

@ -67,8 +67,8 @@ namespace stream
bool m_IsRunning;
std::thread * m_Thread;
boost::asio::io_service m_Service;
boost::asio::io_service::work m_Work;
boost::asio::io_service * m_Service;
boost::asio::io_service::work * m_Work;
std::map<i2p::data::IdentHash, i2p::data::LeaseSet *> m_RemoteLeaseSets;
std::mutex m_StreamsMutex;