Killing an already stopped project is not an error
Log a warning instead and continue.
This commit is contained in:
1 parent
8e2584bab4
commit
aa1dd2bf05
1 file changed
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user