From 5dd311a94198a70512f7f61b4a6bcdf9386d4f94 Mon Sep 17 00:00:00 2001 From: Tyler Kabana Date: Fri, 26 Jun 2026 12:05:56 -0700 Subject: [PATCH] Remove unnecessary PV disconnection in cache clearing logic --- slac_timing/buffer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/slac_timing/buffer.py b/slac_timing/buffer.py index 09e74b5..17e9e97 100644 --- a/slac_timing/buffer.py +++ b/slac_timing/buffer.py @@ -267,9 +267,7 @@ def clear_pv_object_cache(): if pvid[0].endswith(suffix) ] for pvid in stale_pvids: - pv_obj = _PVcache_.pop(pvid, None) - if pv_obj is not None: - pv_obj.disconnect() + _PVcache_.pop(pvid, None) def clear_context_cache(): context_cache = epics.ca._cache.get(ctx)