mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix freeze on shutdown / scene collection change
This commit is contained in:
parent
5d49e8825b
commit
12e38274f5
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user