diff --git a/src/musikcore/net/WebSocketClient.cpp b/src/musikcore/net/WebSocketClient.cpp index 81ff9c4e3..d1373d6bc 100644 --- a/src/musikcore/net/WebSocketClient.cpp +++ b/src/musikcore/net/WebSocketClient.cpp @@ -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);