libnm: fix NMVpnPluginOld registering VPN service

RequestName DBus call takes two agruments:
http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-names

timeout in g_dbus_proxy_call_sync() can't be 0 because it means literally zero
milliseconds and the call times out.
This commit is contained in:
Jiří Klimeš 2015-05-19 14:12:38 +02:00
parent ae0608eef5
commit 4bab4294a6

View file

@ -903,8 +903,8 @@ init_sync (GInitable *initable, GCancellable *cancellable, GError **error)
ret = g_dbus_proxy_call_sync (proxy,
"RequestName",
g_variant_new ("(s)", priv->dbus_service_name),
G_DBUS_CALL_FLAGS_NONE, 0,
g_variant_new ("(su)", priv->dbus_service_name, 0),
G_DBUS_CALL_FLAGS_NONE, -1,
cancellable, error);
g_object_unref (proxy);
if (!ret) {