dbus: properly return from Listen()

If we don't do the dbus dance for returning a value here, we get a timeout
eventually.
pull/2/merge
Peter Hutterer 2018-01-16 11:12:04 +10:00 committed by Benjamin Tissoires
parent f9756a71ce
commit 5f5ce71aef
1 changed files with 1 additions and 0 deletions

View File

@ -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))