summaryrefslogtreecommitdiff
path: root/graphics/upscaler/files/patch-upscaler_window.py
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/upscaler/files/patch-upscaler_window.py')
-rw-r--r--graphics/upscaler/files/patch-upscaler_window.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/upscaler/files/patch-upscaler_window.py b/graphics/upscaler/files/patch-upscaler_window.py
new file mode 100644
index 000000000000..f14c1b3ebd4d
--- /dev/null
+++ b/graphics/upscaler/files/patch-upscaler_window.py
@@ -0,0 +1,14 @@
+Avoid spurious error "Algorithm failed" as poll() returns None when
+the subprocess hasn't finished yet.
+
+--- upscaler/window.py.orig 2022-12-10 21:01:05 UTC
++++ upscaler/window.py
+@@ -203,7 +203,7 @@ class UpscalerWindow(Adw.ApplicationWindow):
+ bad = True
+ continue
+ """ Process algorithm output. """
+- result = self.process.poll()
++ result = self.process.wait(1)
+ if result != 0:
+ raise AlgorithmFailed(result, output)
+ if bad: