From 9a87d7696983b9f2ec70b7b6028a278f08d2205d Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Thu, 12 May 2022 22:27:49 -0400 Subject: [PATCH] fix: finish job on lua job stop function makesdoc sure that a job is finalized by throwing the job.done hook and setting its running status to false --- job.go | 1 + 1 file changed, 1 insertion(+) diff --git a/job.go b/job.go index b1d50b3..8969e05 100644 --- a/job.go +++ b/job.go @@ -59,6 +59,7 @@ func (j *job) lua() rt.Value { func (j *job) luaStop(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { if j.running { j.stop() + j.finish() } return c.Next(), nil