diff options
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() | 
