jp: fixed traceback shown on a normal quit when a progression is finished

This commit is contained in:
Goffi 2016-03-21 19:44:16 +01:00
commit d0fb849398

View file

@ -272,7 +272,7 @@ class Jp(object):
/!\: return must be used after calling this method !
"""
assert self._need_loop
# XXX: python-dbus will show a traceback if we exit in a signal handler with an error code
# XXX: python-dbus will show a traceback if we exit in a signal handler
# so we use this little timeout trick to avoid it
GLib.timeout_add(0, self.quit, errcode)
@ -496,7 +496,7 @@ class CommandBase(object):
pass
self.onProgressFinished(metadata)
if self.host.quit_on_progress_end:
self.host.quit()
self.host.quitFromSignal()
def progressErrorHandler(self, uid, message, profile):
if profile != self.profile: