Fix bug of job_stop not emitting JobExit

The `job_stop` function was calling `uv_read_stop` on the std{out,err} streams.
This is now responsibility of `RStream` and because of those calls `job_stop`
wasn't emitting the `JobExit` event.
This commit is contained in:
Thiago de Arruda 2014-04-18 13:51:55 -03:00
parent 7fb36ebb1d
commit 587f5f0aab

View File

@ -212,8 +212,6 @@ bool job_stop(int id)
return false; return false;
} }
uv_read_stop((uv_stream_t *)&job->proc_stdout);
uv_read_stop((uv_stream_t *)&job->proc_stderr);
job->stopped = true; job->stopped = true;
return true; return true;