Do not send crash logs for apptask cancellations

This commit is contained in:
Girish Ramakrishnan
2016-06-14 14:01:02 -07:00
parent 060d9e88ef
commit 26f318477b
2 changed files with 6 additions and 1 deletions

View File

@@ -164,7 +164,7 @@ function stopAppTask(appId, callback) {
if (gActiveTasks[appId]) {
debug('stopAppTask : Killing existing task of %s with pid %s', appId, gActiveTasks[appId].pid);
gActiveTasks[appId].once('exit', function () { callback(); });
gActiveTasks[appId].kill('SIGKILL'); // this will end up calling the 'exit' handler
gActiveTasks[appId].kill('SIGTERM'); // this will end up calling the 'exit' handler
return;
}