refactor: unexport tray watcher

This commit is contained in:
Alex 2019-05-17 13:51:55 +02:00
parent f8a47598ba
commit d8be72e4b6
1 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,7 @@ Watcher::~Watcher() {
items_ = nullptr; items_ = nullptr;
} }
auto iface = G_DBUS_INTERFACE_SKELETON(watcher_); auto iface = G_DBUS_INTERFACE_SKELETON(watcher_);
auto conn = g_dbus_interface_skeleton_get_connection(iface); g_dbus_interface_skeleton_unexport(iface);
g_dbus_interface_skeleton_unexport_from_connection(iface, conn);
} }
void Watcher::busAcquired(const Glib::RefPtr<Gio::DBus::Connection>& conn, Glib::ustring name) { void Watcher::busAcquired(const Glib::RefPtr<Gio::DBus::Connection>& conn, Glib::ustring name) {