Skip to content

Commit

Permalink
Merge branch 'pr-1054' into presubmit-stable-pr-1054
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed May 10, 2014
2 parents d11b753 + bd66274 commit a1c9c9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/launchers/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var ProcessLauncher = function(spawn, tempDir, timer) {

onExitCallback = done;
self._process.kill();
timer.setTimeout(self._onKillTimeout, killTimeout);
self._killTimer = timer.setTimeout(self._onKillTimeout, killTimeout);
});

this._start = function(url) {
Expand Down Expand Up @@ -110,6 +110,10 @@ var ProcessLauncher = function(spawn, tempDir, timer) {
}

self._process = null;
if (self._killTimer) {
timer.clearTimeout(self._killTimer);
self._killTimer = null;
}
self._clearTempDirAndReportDone(error);
};

Expand Down

0 comments on commit a1c9c9b

Please sign in to comment.