Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions multiparser/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,12 @@ def _read_loop(
"""Thread target function for parsing of detected file"""

_cached_metadata: typing.Dict[str, str | int] = {}

_terminated = False
try:
while not termination_trigger.is_set():
while not _terminated:

_terminated = termination_trigger.is_set()

time.sleep(interval)

# If the file does not exist yet then continue
Expand Down
Loading