fix hanging streamprogressmanager
This commit is contained in:
parent
632fd764fa
commit
cfe73a8627
1 changed files with 2 additions and 1 deletions
|
@ -154,10 +154,11 @@ class FullStreamProgressManager(StreamProgressManager):
|
||||||
d.addCallback(lambda _: check_if_finished())
|
d.addCallback(lambda _: check_if_finished())
|
||||||
|
|
||||||
def log_error(err):
|
def log_error(err):
|
||||||
log.warning("Error occurred in the output loop. Error: %s", err.getErrorMessage())
|
log.warning("Error occurred in the output loop. Error: %s", err)
|
||||||
if self.outputting_d is not None and not self.outputting_d.called:
|
if self.outputting_d is not None and not self.outputting_d.called:
|
||||||
self.outputting_d.callback(True)
|
self.outputting_d.callback(True)
|
||||||
self.outputting_d = None
|
self.outputting_d = None
|
||||||
|
self.stop()
|
||||||
|
|
||||||
d.addErrback(log_error)
|
d.addErrback(log_error)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue