add timeout to opengl render queue
This commit is contained in:
parent
1f80f2daa6
commit
4ccbbd0491
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue