From b03060a00fbc6872f2f031c2f1cd360e64adf1e6 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 19 Dec 2024 13:11:13 -0600 Subject: [PATCH] refactor --- repertory/librepertory/src/drives/eviction.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repertory/librepertory/src/drives/eviction.cpp b/repertory/librepertory/src/drives/eviction.cpp index f032b390..d0a648fc 100644 --- a/repertory/librepertory/src/drives/eviction.cpp +++ b/repertory/librepertory/src/drives/eviction.cpp @@ -88,6 +88,10 @@ void eviction::service_function() { } } + if (get_stop_requested()) { + return; + } + unique_mutex_lock lock(get_mutex()); if (get_stop_requested()) { return;