diff --git a/src/Instance.cxx b/src/Instance.cxx index 9ddec2eea..53cb00a33 100644 --- a/src/Instance.cxx +++ b/src/Instance.cxx @@ -34,6 +34,11 @@ #include +Instance::Instance() + :idle_monitor(event_loop, BIND_THIS_METHOD(OnIdle)) +{ +} + #ifdef ENABLE_DATABASE const Database & diff --git a/src/Instance.hxx b/src/Instance.hxx index d3391d64f..13cacc28b 100644 --- a/src/Instance.hxx +++ b/src/Instance.hxx @@ -91,8 +91,7 @@ struct Instance final StateFile *state_file = nullptr; - Instance() - :idle_monitor(event_loop, BIND_THIS_METHOD(OnIdle)) {} + Instance(); /** * Initiate shutdown. Wrapper for EventLoop::Break().