commit a2bc013a0a60e9c0364260718463a9a0076481e2
parent d630b1117d8c7c7b7592856f1ce92bd213c3a4bf
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Tue, 15 Nov 2016 22:25:10 +0100
Fix loop
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/__init__.py b/__init__.py
@@ -92,7 +92,7 @@ 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 + '"'
task = _get_lines(command)
- task = asyncio.wait_for(task, 240.0, loop=self.loop)
+ task = asyncio.wait_for(task, 240.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 + '"'