Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit d05f675

Browse files
proppyGerrit Code Review
authored andcommitted
Merge "google-assistant-sdk/audio_helpers: fix generator termination"
2 parents 3c15632 + bd3253d commit d05f675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-assistant-sdk/googlesamples/assistant/grpc/audio_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def __iter__(self):
335335
"""Returns a generator reading data from the stream."""
336336
while True:
337337
if self._stop_recording.is_set():
338-
raise StopIteration
338+
return
339339
yield self.read(self._iter_size)
340340

341341
@property

0 commit comments

Comments
 (0)