diff --git a/lib/app_profiler/backend/base_backend.rb b/lib/app_profiler/backend/base_backend.rb index ca1a20a..81946c9 100644 --- a/lib/app_profiler/backend/base_backend.rb +++ b/lib/app_profiler/backend/base_backend.rb @@ -40,7 +40,7 @@ def acquire_run_lock end def release_run_lock - self.class.run_lock.unlock + self.class.run_lock.unlock if self.class.run_lock.locked? rescue ThreadError AppProfiler.logger.warn("[AppProfiler] run lock not released as it was never acquired") end