diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-06-23 13:56:20 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-06-23 13:56:20 +0000 |
commit | 7d8dc82e027404d688639c0aea2909c131f221f4 (patch) | |
tree | a1d787bc37deed5e4871a8852382eb372b9b3945 /test/apitest | |
parent | 1af3ab21273cf272b3825d49a0d199b0b0a5a623 (diff) |
apitest: fixed signal handler
Diffstat (limited to 'test/apitest')
-rwxr-xr-x | test/apitest | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/apitest b/test/apitest index 7ce3f098..ccb40bbe 100755 --- a/test/apitest +++ b/test/apitest @@ -145,7 +145,8 @@ class Tester: for path in dev_signals_filter: self.bus.add_signal_receiver(self.dev_signal_handler, signal, 'org.bluez.Adapter', - 'org.bluez', path) + 'org.bluez', path, + message_keyword='dbus_message') except dbus.DBusException, e: print 'Failed to setup signal handler for device path: %s' % e sys.exit(1) @@ -414,7 +415,7 @@ class Tester: self.dbus_dev_sig_setup() print 'Listening for events...' - if self.cmd in mgr_cmds: + elif self.cmd in mgr_cmds: try: self.dbus_mgr_setup() except dbus.DBusException, e: |