Fix freeze on shutdown / scene collection change

This commit is contained in:
WarmUpTill 2025-12-08 19:46:12 +01:00 committed by WarmUpTill
parent 5d49e8825b
commit 12e38274f5

View File

@ -72,7 +72,6 @@ void EventSub::UnregisterInstance()
void EventSub::ConnectThread()
{
_client->reset();
_connected = true;
websocketpp::lib::error_code ec;
EventSubWSClient::connection_ptr con =
_client->get_connection(_url, ec);
@ -113,6 +112,7 @@ void EventSub::Connect()
_thread.join();
}
_disconnect = false;
_connected = true;
_thread = std::thread(&EventSub::ConnectThread, this);
}