diff options
Diffstat (limited to 'src/nvim/os/job_private.h')
| -rw-r--r-- | src/nvim/os/job_private.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/os/job_private.h b/src/nvim/os/job_private.h index 983106d918..b90f2d0171 100644 --- a/src/nvim/os/job_private.h +++ b/src/nvim/os/job_private.h @@ -5,6 +5,7 @@ #include <uv.h> +#include "nvim/event/time.h" #include "nvim/os/rstream_defs.h" #include "nvim/os/wstream_defs.h" #include "nvim/os/pipe_process.h" @@ -43,7 +44,7 @@ struct job { extern Job *table[]; extern size_t stop_requests; -extern uv_timer_t job_stop_timer; +extern TimeWatcher job_stop_timer; static inline bool process_spawn(Job *job) { @@ -95,7 +96,7 @@ static inline void job_exit_callback(Job *job) if (stop_requests && !--stop_requests) { // Stop the timer if no more stop requests are pending DLOG("Stopping job kill timer"); - uv_timer_stop(&job_stop_timer); + time_watcher_stop(&job_stop_timer); } } |