LyricsPage: use ScreenManager::get_io_service()
authorMax Kellermann <max@musicpd.org>
Sun, 24 Mar 2019 20:11:07 +0000 (21:11 +0100)
committerMax Kellermann <max@musicpd.org>
Sun, 24 Mar 2019 20:11:07 +0000 (21:11 +0100)
boost::asio::steady_timer::get_io_service() has been removed in Boost
1.70, but ScreenManager has a reference to the
boost::asio::io_service.

Fixes the missing piece for https://github.com/MusicPlayerDaemon/ncmpc/issues/49

src/LyricsPage.cxx

index fcd13e4..b3ae87e 100644 (file)
@@ -75,7 +75,7 @@ public:
        }
 
        auto &get_io_service() noexcept {
-               return loader_timeout.get_io_service();
+               return screen.get_io_service();
        }
 
 private: