commit 42631105da7b6bb8819e60fb4f2be6f882043212
parent ac42c36996f9e49fc94d2beeac104b2368b6b7ad
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Wed, 16 Nov 2016 10:40:35 +0100
Fix timeout
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/__init__.py b/__init__.py
@@ -103,12 +103,12 @@ def _screencap(maptype, url, filepath, filename, SACSID, CSRF, plugins, search,
if search == False:
command = 'phantomjs hangupsbot/plugins/intel_screenbot/screencap_' + maptype + '.js "' + SACSID + '" "' + CSRF + '" "' + url + '" "' + filepath + '" "' + plugins + '"'
task = _get_lines(command)
- task = asyncio.wait_for(task, 240.0, loop=loop)
+ task = asyncio.wait_for(task, 420.0, loop=loop)
exitcode, stdout = loop.run_until_complete(task)
else:
command = 'phantomjs hangupsbot/plugins/intel_screenbot/screencap_' + maptype + '.js "' + SACSID + '" "' + CSRF + '" "' + url + '" "' + filepath + '" "' + search + '" "' + plugins + '"'
task = _get_lines(command)
- task = asyncio.wait_for(task, 240.0, loop=loop)
+ task = asyncio.wait_for(task, 420.0, loop=loop)
exitcode, stdout = yield from task
# read the resulting file into a byte array