jp: fixed traceback shown on a normal quit when a progression is finished
This commit is contained in:
parent
d02c466ddd
commit
d0fb849398
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue