commit 92add8aa40c9e7a295a72feb7780646582d3812b
parent 13579db70b670cfd59176dd515137e998409d233
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Tue, 27 Dec 2016 19:05:38 +0100
Some fixes
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/__init__.py b/__init__.py
@@ -82,11 +82,12 @@ def _get_iitc_plugins(bot):
def _get_lines(shell_command):
p = yield from asyncio.create_subprocess_shell(shell_command)
- output = yield from p.wait()
+ output = yield from asyncio.wait_for(p.wait(), 240.0)
return p.returncode, output, True
@asyncio.coroutine
def _screencap(url, args_filepath, filepath, filename, bot, event):
+ os.chmod(filepath, 0o666)
loop = asyncio.get_event_loop()
command = 'phantomjs hangupsbot/plugins/intel_screenbot/screencap.js "' + args_filepath + '"'
task = _get_lines(command)