mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-20 00:21:29 +00:00
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:
parent
ae0608eef5
commit
4bab4294a6
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue