commit 1636706340fe43ab2ff512093230d3addbbddb9f
parent 03f45cd4ca362764fa04e365e26bd07f820e4e07
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Thu, 10 Nov 2016 21:48:26 +0100
sync wait to loading time.
It would otherwise fail
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/intel_screenbot/__init__.py b/intel_screenbot/__init__.py
@@ -39,6 +39,7 @@ def _screencap(url, filename, SACSID, CSRF, search, bot, event):
logger.debug("Exception: {}".format(e))
process.kill()
loop = asyncio.get_event_loop()
+ yield from asyncio.sleep(10)
# read the resulting file into a byte array
file_resource = yield from _open_file(filename)
file_data = yield from loop.run_in_executor(None, file_resource.read)