Changed yield to return when sentinal value is recieved through the FIFO

This commit is contained in:
Dionysus 2024-03-07 22:57:59 -05:00
parent da065c6889
commit b78b99e060
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ async def process_data(file_path: str):
# Sentinel value to indicate the end of a process (for closing out a FIFO stream)
if line == '~eof':
yield last
return last
# Skip empty lines
if not line: