Skip to content

Commit

Permalink
Fix wrong joinable check
Browse files Browse the repository at this point in the history
Co-authored-by: Piet Gömpel <[email protected]>
Signed-off-by: Marc Emmers <[email protected]>
  • Loading branch information
marcemmers and Pietfried committed Nov 19, 2024
1 parent fc35f63 commit 4f153e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ocpp/common/websocket/websocket_libwebsockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ bool WebsocketLibwebsockets::connect() {
this->websocket_thread.reset();
}

if (this->recv_message_thread && this->websocket_thread->joinable()) {
if (this->recv_message_thread && this->recv_message_thread->joinable()) {
// Awake the receiving message thread to finish
recv_message_cv.notify_one();
this->recv_message_thread->join();
Expand Down

0 comments on commit 4f153e6

Please sign in to comment.