From 6b78ef858444ff836c9f265fd75213ee75a705a7 Mon Sep 17 00:00:00 2001 From: Vsevolod Kremianskii Date: Tue, 4 Aug 2020 09:38:54 +0700 Subject: [PATCH] fix(core): Cancel async jobs on exit --- src/core/jobs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/jobs.cpp b/src/core/jobs.cpp index c79b32cb..23484d52 100644 --- a/src/core/jobs.cpp +++ b/src/core/jobs.cpp @@ -33,6 +33,7 @@ JobExecutor::~JobExecutor() { } void JobExecutor::deinit() { + _cancel = true; _pool.join(); }