diff options
Diffstat (limited to 'src/os/job.c')
-rw-r--r-- | src/os/job.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/os/job.c b/src/os/job.c index f0c64a27a8..7940338b70 100644 --- a/src/os/job.c +++ b/src/os/job.c @@ -250,8 +250,10 @@ void job_exit_event(Event event) // this one table[job->id - 1] = NULL; - // Invoke the exit callback - job->exit_cb(job, job->data); + if (job->exit_cb) { + // Invoke the exit callback + job->exit_cb(job, job->data); + } // Free the job resources free_job(job); |