diff --git a/src/lib/dbus/Glue.cxx b/src/lib/dbus/Glue.cxx index 62d3a6a16..9ea4cec92 100644 --- a/src/lib/dbus/Glue.cxx +++ b/src/lib/dbus/Glue.cxx @@ -39,7 +39,7 @@ Glue::ConnectIndirect() } void -Glue::DisconnectIndirect() +Glue::DisconnectIndirect() noexcept { BlockingCall(GetEventLoop(), [this](){ Disconnect(); }); } @@ -53,7 +53,7 @@ Glue::Connect() } void -Glue::Disconnect() +Glue::Disconnect() noexcept { GetConnection().Close(); diff --git a/src/lib/dbus/Glue.hxx b/src/lib/dbus/Glue.hxx index 982e17cfd..8fbcaf3c2 100644 --- a/src/lib/dbus/Glue.hxx +++ b/src/lib/dbus/Glue.hxx @@ -62,10 +62,10 @@ public: private: void ConnectIndirect(); - void DisconnectIndirect(); + void DisconnectIndirect() noexcept; void Connect(); - void Disconnect(); + void Disconnect() noexcept; /* virtual methods from class ODBus::WatchManagerObserver */ void OnDBusClosed() noexcept override;