mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge from trunk
This commit is contained in:
commit
25894632dc
@ -76,10 +76,16 @@ class DeviceJob(BaseJob): # {{{
|
||||
self.job_done()
|
||||
|
||||
def abort(self, err):
|
||||
call_job_done = False
|
||||
if self.run_state == self.WAITING:
|
||||
self.start_work()
|
||||
call_job_done = True
|
||||
self._aborted = True
|
||||
self.failed = True
|
||||
self._details = unicode(err)
|
||||
self.exception = err
|
||||
if call_job_done:
|
||||
self.job_done()
|
||||
|
||||
@property
|
||||
def log_file(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user