diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2008-06-09 12:46:25 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2008-06-09 12:46:25 +0000 | 
| commit | a15d02a90df528bd44bbdaeb8c10df63be4639d5 (patch) | |
| tree | 728c4ccf11c5e1297d0af7f4cebe30323d3ec424 /hcid | |
| parent | fad3b8ad7a07de0c96c34b9d624ec174c2754817 (diff) | |
Don't register agent when pairing device
Diffstat (limited to 'hcid')
| -rwxr-xr-x | hcid/simple-agent | 6 | 
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() | 
