fix missing reference

This commit is contained in:
Joao Moreno
2017-12-05 10:50:21 +01:00
parent 0780acee81
commit 618e3806c3

View File

@@ -1017,12 +1017,12 @@ export class Repository {
const onStdoutData = (raw: string) => {
parser.update(raw);
if (parser.status.length > 5000) {
if (parser.status.length > limit) {
child.removeListener('exit', onExit);
child.stdout.removeListener('data', onStdoutData);
child.kill();
c({ status: parser.status.slice(0, 5000), didHitLimit: true });
c({ status: parser.status.slice(0, limit), didHitLimit: true });
}
};