dbus: properly return from Listen()
If we don't do the dbus dance for returning a value here, we get a timeout eventually.pull/1/head
parent
7c3852d70f
commit
2ada21fbf7
|
@ -86,6 +86,7 @@ class TuhiDBusDevice(GObject.Object):
|
|||
|
||||
if methodname == 'Listen':
|
||||
self._listen()
|
||||
invocation.return_value()
|
||||
elif methodname == 'GetJSONData':
|
||||
json = GLib.Variant.new_string(self._json_data(args))
|
||||
invocation.return_value(GLib.Variant.new_tuple(json))
|
||||
|
|
Loading…
Reference in New Issue