diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2008-02-23 03:24:14 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2008-02-23 03:24:14 +0100 |
commit | 3a2a0b247bf3adc77ab5067dd261c24583c97e3f (patch) | |
tree | 8903460adc04ed961d4d5dff37301643ea0f92bb | |
parent | e79a94f6d4818767a16c5db50d1b6639accb40ed (diff) |
kill skype on shutdown
-rw-r--r-- | skype/skyped.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/skype/skyped.py b/skype/skyped.py index 6cc5f4c6..163e9e78 100644 --- a/skype/skyped.py +++ b/skype/skyped.py @@ -44,10 +44,11 @@ SKYPE_SERVICE = 'com.Skype.API' CLIENT_NAME = 'SkypeApiPythonShell' def eh(type, value, tb): - if type == KeyboardInterrupt: - sys.exit("Exiting.") - print_exception(type, value, tb) - sys.exit(1) + if type != KeyboardInterrupt: + print_exception(type, value, tb) + gobject.MainLoop().quit() + skype.skype.Client.Shutdown() + sys.exit("Exiting.") sys.excepthook = eh |