m-modem-manager: Set GDBusConnection before trying to use it

Fixes: 2794764d5a (m-modem-manager: add module for tracking status of voice calls)

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
This commit is contained in:
Evangelos Ribeiro Tzaras 2025-11-25 10:39:08 +01:00 committed by George Kiagiadakis
parent 27b6027649
commit 278541f637

View file

@ -209,6 +209,8 @@ list_calls_done (GObject * obj,
return;
}
g_object_get (wpmm->dbus, "connection", &conn, NULL);
g_variant_get (params, "(ao)", &calls);
while (g_variant_iter_loop (calls, "o", &path)) {
g_dbus_proxy_new (conn,