summaryrefslogtreecommitdiffstats
path: root/test/test-push-notification
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-push-notification')
-rwxr-xr-xtest/test-push-notification7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test-push-notification b/test/test-push-notification
index 4dca0d46..11d384cd 100755
--- a/test/test-push-notification
+++ b/test/test-push-notification
@@ -44,4 +44,9 @@ if __name__ == '__main__':
print "Agent registered"
mainloop = gobject.MainLoop()
- mainloop.run()
+
+ try:
+ mainloop.run()
+ except KeyboardInterrupt:
+ pn.UnregisterAgent(path)
+ mainloop.run()