use a regular mutex instead of a recursive one + stop properly

This commit is contained in:
Benjamin Sergeant
2019-05-15 19:19:13 -07:00
parent ace7a7ccae
commit 671c9f805f
4 changed files with 25 additions and 8 deletions

View File

@ -154,7 +154,7 @@ namespace ix
// Underlying TCP socket
std::shared_ptr<Socket> _socket;
std::recursive_mutex _socketMutex;
std::mutex _socketMutex;
// Hold the state of the connection (OPEN, CLOSED, etc...)
std::atomic<ReadyState> _readyState;