From 0e7da1f98db89944ca7968d96bdee33944e3a439 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Wed, 13 Aug 2025 12:34:00 -0700 Subject: [PATCH] Avoid errors with nremain/oremain processing in case the entry is not found. --- cista/watching.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cista/watching.py b/cista/watching.py index b36e165..e9eef85 100644 --- a/cista/watching.py +++ b/cista/watching.py @@ -271,7 +271,7 @@ def format_update(old, new): insert_items = [] while nidx < len(new) and new[nidx] not in oremain: entry = new[nidx] - nremain.remove(entry) + nremain.discard(entry) insert_items.append(entry) nidx += 1 if insert_items: @@ -392,8 +392,8 @@ def watcher_inotify(loop): if not dirty: t = time.monotonic() dirty = True - # Wait a maximum of 0.5s to push the updates - if dirty and time.monotonic() >= t + 0.5: + # Wait a maximum of 0.2s to push the updates + if dirty and time.monotonic() >= t + 0.2: break if dirty and state.root != rootmod: try: