diff --git a/websocketpp/transport/iostream/connection.hpp b/websocketpp/transport/iostream/connection.hpp index e9b23d76bb..6072825e59 100644 --- a/websocketpp/transport/iostream/connection.hpp +++ b/websocketpp/transport/iostream/connection.hpp @@ -71,7 +71,7 @@ public: void register_ostream(std::ostream* o) { // TODO: lock transport state? - + scoped_lock_type lock(m_read_mutex); output_stream = o; }