Ratbagd: increase timeout from 500 to 2000 milliseconds

As mentioned in #119, this is just a stop-gap until libratbag
switches to an async commit (https://github.com/libratbag/libratbag/issues/269)

Fixes #119.
This commit is contained in:
Jente Hidskes
2017-08-16 13:56:06 +02:00
committed by Peter Hutterer
parent 4ebea6fed1
commit e85fbf232d

View File

@@ -174,7 +174,7 @@ class _RatbagdDBus(GObject.GObject):
pval = GLib.Variant("(ssv)".format(type), (self._interface, property, val))
self._proxy.call_sync("org.freedesktop.DBus.Properties.Set",
pval, Gio.DBusCallFlags.NO_AUTO_START,
500, None)
2000, None)
# This is our local copy, so we don't have to wait for the async
# update
@@ -192,7 +192,7 @@ class _RatbagdDBus(GObject.GObject):
try:
res = self._proxy.call_sync(method, val,
Gio.DBusCallFlags.NO_AUTO_START,
500, None)
2000, None)
global EXCEPTION_TABLE
if res in EXCEPTION_TABLE:
raise EXCEPTION_TABLE[res]