Fix compile for older versions of boost (e.g. the one used in Bionic)

This commit is contained in:
casey langen 2020-11-03 22:51:40 -08:00
parent b91bd312c6
commit 498dea25ca

View File

@ -255,7 +255,11 @@ void WebSocketClient::Reconnect() {
this->Disconnect();
#if BOOST_VERSION < 106600
io.reset();
#else
io.restart();
#endif
auto prefs = Preferences::ForComponent(core::prefs::components::Settings);
auto timeout = prefs->GetInt(core::prefs::keys::RemoteLibraryLatencyTimeoutMs, 5000);