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

This commit is contained in:
Benjamin Sergeant
2019-05-15 19:26:02 -07:00
parent 934b28f5b6
commit 243f41bf28
4 changed files with 25 additions and 8 deletions
+1 -1
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;