Skip to content

Commit 043be93

Browse files
authored
fix: body gen hangs on retry when inputs exhausted in append session (#13)
1 parent 26d508b commit 043be93

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/s2_sdk/_s2s/_append_session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ async def _body_gen(
209209
while True:
210210
inp = await input_queue.get()
211211
if inp is None:
212+
await input_queue.put(None)
212213
return
213214
encoded = _encode_input(inp, compression)
214215
inflight_inputs.append(

0 commit comments

Comments
 (0)