Fixed timeout parameter passed through closure in WebSocketClient

This commit is contained in:
casey langen 2020-10-17 22:21:52 -07:00
parent 5c28cca2d8
commit be49a66717

View File

@ -261,7 +261,7 @@ void WebSocketClient::Reconnect() {
auto timeout = prefs->GetInt(core::prefs::keys::RemoteLibraryLatencyTimeoutMs, 5000);
this->SetState(State::Connecting);
this->thread = std::make_shared<std::thread>([&]() {
this->thread = std::make_shared<std::thread>([&, timeout]() {
std::string uri;
{