patch 8.0.0087
Problem: When the channel callback gets job info the job may already have
been deleted. (lifepillar)
Solution: Do not delete the job when the channel is still useful. (ichizok,
closes #1242, closes #1245)
diff --git a/src/structs.h b/src/structs.h
index 31accea..c749a36 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1421,11 +1421,13 @@
dict_T *pt_dict; /* dict for "self" */
};
+/* Status of a job. Order matters! */
typedef enum
{
JOB_FAILED,
JOB_STARTED,
- JOB_ENDED
+ JOB_ENDED, /* detected job done */
+ JOB_FINISHED /* job done and cleanup done */
} jobstatus_T;
/*