diff options
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c index 7af19b0412..c79107c869 100644 --- a/src/channel.c +++ b/src/channel.c @@ -5189,6 +5189,11 @@ job_stop(job_T *job, typval_T *argvars, char *type) return 0; } } + if (job->jv_status == JOB_FAILED) + { + ch_log(job->jv_channel, "Job failed to start, job_stop() skipped"); + return 0; + } if (job->jv_status == JOB_ENDED) { ch_log(job->jv_channel, "Job has already ended, job_stop() skipped"); |