mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 12:26:00 -04:00
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:
committed by
Peter Hutterer
parent
4ebea6fed1
commit
e85fbf232d
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user