projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31678ee
)
test: Explicitely unregister the NDEF agent when being interrupted
author
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 20 Jun 2013 10:57:17 +0000
(12:57 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 20 Jun 2013 10:57:17 +0000
(12:57 +0200)
test/ndef-agent
patch
|
blob
|
history
diff --git
a/test/ndef-agent
b/test/ndef-agent
index
350d0d3
..
4121d8e
100755
(executable)
--- a/
test/ndef-agent
+++ b/
test/ndef-agent
@@
-65,4
+65,8
@@
if __name__ == '__main__':
manager.RegisterNDEFAgent(path, rec_type)
mainloop = gobject.MainLoop()
- mainloop.run()
+
+ try:
+ mainloop.run()
+ except (KeyboardInterrupt):
+ manager.UnregisterNDEFAgent(path, rec_type)