From d8be72e4b6453b2b213fd59a6d36627f53737fda Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 May 2019 13:51:55 +0200 Subject: [PATCH] refactor: unexport tray watcher --- src/modules/sni/watcher.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/sni/watcher.cpp b/src/modules/sni/watcher.cpp index 1ba1324f..596a06d4 100644 --- a/src/modules/sni/watcher.cpp +++ b/src/modules/sni/watcher.cpp @@ -24,8 +24,7 @@ Watcher::~Watcher() { items_ = nullptr; } auto iface = G_DBUS_INTERFACE_SKELETON(watcher_); - auto conn = g_dbus_interface_skeleton_get_connection(iface); - g_dbus_interface_skeleton_unexport_from_connection(iface, conn); + g_dbus_interface_skeleton_unexport(iface); } void Watcher::busAcquired(const Glib::RefPtr& conn, Glib::ustring name) {