File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/SignalR/clients/cpp/src/signalrclient Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ namespace signalr
109109 m_handshakeTask = pplx::task_completion_event<void >();
110110 m_handshakeReceived = false ;
111111 std::weak_ptr<hub_connection_impl> weak_connection = shared_from_this ();
112- return m_connection->start ([weak_connection, callback](std::exception_ptr start_exception)
112+ m_connection->start ([weak_connection, callback](std::exception_ptr start_exception)
113113 {
114114 auto connection = weak_connection.lock ();
115115 if (!connection)
Original file line number Diff line number Diff line change @@ -148,12 +148,10 @@ namespace signalr
148148 _ASSERTE (uri.scheme () == _XPLATSTR (" ws" ) || uri.scheme () == _XPLATSTR (" wss" ));
149149
150150 {
151- std::unique_lock <std::mutex> stop_lock (m_start_stop_lock);
151+ std::lock_guard <std::mutex> stop_lock (m_start_stop_lock);
152152
153153 if (!m_receive_loop_cts.get_token ().is_canceled ())
154154 {
155- // just in case the user tries to start again in the callback on error
156- stop_lock.unlock ();
157155 callback (std::make_exception_ptr (signalr_exception (" transport already connected" )));
158156 return ;
159157 }
You can’t perform that action at this time.
0 commit comments