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

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) # Sentinel value to indicate the end of a process (for closing out a FIFO stream)
if line == '~eof': if line == '~eof':
yield last return last
# Skip empty lines # Skip empty lines
if not line: if not line: