diff --git a/src/client.cpp b/src/client.cpp index 2865f78..e8dd98b 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -93,7 +93,10 @@ bool Redox::connectUnix(const string &path, function connection_callb } // Return if succeeded - return connect_state_ == CONNECTED; + { + unique_lock ul(connect_lock_); + return connect_state_ == CONNECTED; + } } void Redox::disconnect() {