summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-09 12:46:25 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-09 12:46:25 +0000
commita15d02a90df528bd44bbdaeb8c10df63be4639d5 (patch)
tree728c4ccf11c5e1297d0af7f4cebe30323d3ec424 /hcid
parentfad3b8ad7a07de0c96c34b9d624ec174c2754817 (diff)
Don't register agent when pairing device
Diffstat (limited to 'hcid')
-rwxr-xr-xhcid/simple-agent6
1 files changed, 3 insertions, 3 deletions
diff --git a/hcid/simple-agent b/hcid/simple-agent
index e068c275..691ae66b 100755
--- a/hcid/simple-agent
+++ b/hcid/simple-agent
@@ -74,9 +74,6 @@ if __name__ == '__main__':
path = "/test/agent"
object = Agent(bus, path)
- adapter.RegisterAgent(path, "DisplayOnly")
- print "Agent registered"
-
mainloop = gobject.MainLoop()
if len(sys.argv) > 2:
@@ -87,6 +84,9 @@ if __name__ == '__main__':
adapter.CreatePairedDevice(sys.argv[2], path, "DisplayOnly",
reply_handler=create_device_reply,
error_handler=create_device_reply)
+ else:
+ adapter.RegisterAgent(path, "DisplayOnly")
+ print "Agent registered"
mainloop.run()