From 4b14de05c9bedcad7a9bc68eaee4a909ba503f32 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 20 Jun 2017 09:18:15 +0100 Subject: [PATCH] Killing an already stopped project is not an error Log a warning instead and continue. --- services/clsi/app/coffee/LatexRunner.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/clsi/app/coffee/LatexRunner.coffee b/services/clsi/app/coffee/LatexRunner.coffee index efd89dfc4b..6a5a4f6ae2 100644 --- a/services/clsi/app/coffee/LatexRunner.coffee +++ b/services/clsi/app/coffee/LatexRunner.coffee @@ -58,7 +58,8 @@ module.exports = LatexRunner = id = "#{project_id}" logger.log {id:id}, "killing running compile" if not ProcessTable[id]? - return callback new Error("no such project to kill") + logger.warn {id}, "no such project to kill" + return callback(null) else CommandRunner.kill ProcessTable[id], callback