Unverified Commit 5cc93470 authored by Diogo Correia's avatar Diogo Correia
Browse files

switch-to-configuration-ng: increase dbus timeout to 10s

In certain cases, systemd might take more than 5 seconds to reply
through dbus, causing the switch to appear to fail even though it
succeeded. This commit increases the timeout to 10 seconds, which should
make it more reliable. Additionally, the timeout for the login dbus was
also increased for consistency.

Fix #378535
parent 3a05eebe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -892,12 +892,12 @@ fn new_dbus_proxies(
        conn.with_proxy(
            "org.freedesktop.systemd1",
            "/org/freedesktop/systemd1",
            Duration::from_millis(5000),
            Duration::from_millis(10000),
        ),
        conn.with_proxy(
            "org.freedesktop.login1",
            "/org/freedesktop/login1",
            Duration::from_millis(5000),
            Duration::from_millis(10000),
        ),
    )
}