Ensure initial synchronization is atomic.

This commit is contained in:
Peter Johnson
2015-07-31 23:56:06 -07:00
parent 0a10778697
commit 11508b77d1
5 changed files with 29 additions and 23 deletions

View File

@@ -98,7 +98,7 @@ void NetworkConnection::ReadThreadMain() {
if (m_stream) m_stream->close();
break;
}
m_process_incoming(std::move(msg), this, m_proto_rev);
m_process_incoming(std::move(msg), this);
}
DEBUG3("read thread died");
m_state = static_cast<int>(kDead);