add timeout to opengl render queue

This commit is contained in:
Laura Klünder 2017-11-30 15:53:12 +01:00
parent 1f80f2daa6
commit 4ccbbd0491

View file

@ -141,7 +141,7 @@ class OpenGLWorker(threading.Thread):
Render image and return it as PNG bytes
"""
task = RenderTask(width, height, scale, offset, background_rgb, vertices)
self._queue.put(task)
self._queue.put(task, timeout=3)
return task.get_result()