summaryrefslogtreecommitdiffstats
path: root/test/test-smart-messaging
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-smart-messaging')
-rwxr-xr-xtest/test-smart-messaging7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test-smart-messaging b/test/test-smart-messaging
index b263eddb..0a37ba14 100755
--- a/test/test-smart-messaging
+++ b/test/test-smart-messaging
@@ -62,4 +62,9 @@ if __name__ == '__main__':
print "Agent registered"
mainloop = gobject.MainLoop()
- mainloop.run()
+
+ try:
+ mainloop.run()
+ except KeyboardInterrupt:
+ pn.UnregisterAgent(path)
+ mainloop.run()