Apply G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS for dbus proxy 07/243007/3
authorHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 2 Sep 2020 11:09:06 +0000 (20:09 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 2 Sep 2020 11:45:01 +0000 (20:45 +0900)
This is for preventing implicit dbus signal subscription with NULL member
that causes too many signal messages.

Change-Id: Iaf0b78da45e8e6fdecea162fe44c529dc99a5ed7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
src/dbus.c

index 91c8efa..bf7d1fe 100644 (file)
@@ -210,7 +210,8 @@ static GDBusProxy *get_proxy_from_proxy_pool(const char *dest,
        }
 
        proxy = g_dbus_proxy_new_sync(conn,
-                       G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
+                       G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES |
+                       G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS,
                        NULL,      /* GDBusinterfaceinfo */
                        dest,      /* bus name */
                        path,      /* object path */