فهرست منبع

Killing an already stopped project is not an error

Log a warning instead and continue.
Shane Kilkelly 9 سال پیش
والد
کامیت
4b14de05c9
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      services/clsi/app/coffee/LatexRunner.coffee

+ 2 - 1
services/clsi/app/coffee/LatexRunner.coffee

@@ -58,7 +58,8 @@ module.exports = LatexRunner =
 		id = "#{project_id}"
 		id = "#{project_id}"
 		logger.log {id:id}, "killing running compile"
 		logger.log {id:id}, "killing running compile"
 		if not ProcessTable[id]?
 		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
 		else
 			CommandRunner.kill ProcessTable[id], callback
 			CommandRunner.kill ProcessTable[id], callback