diff options
Diffstat (limited to 'test/test-push-notification')
-rwxr-xr-x | test/test-push-notification | 7 |
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() |