Fix keeper-bench in case of error during scheduling a thread

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-08-12 10:56:11 +02:00
parent e2ae0d585b
commit d3e8ad9e7e

View File

@ -167,6 +167,7 @@ void Runner::runBenchmark()
}
catch (...)
{
shutdown = true;
pool.wait();
throw;
}