fix(sdk): preserve queued events on stream close

Signed-off-by: Lanre Shittu <136805224+Shizoqua@users.noreply.github.com>
This commit is contained in:
Lanre Shittu authored and Xubin Ren committed 2026-09-03 16:47:23 +08:00
1 parent 972cdde8da
commit 816a999cac
3 files changed
+27 -7

No files matched your search

+1 -1
View File
@@ -302,7 +302,7 @@ class Nanobot:
))
raise
finally:
emitter.close()
await emitter.close()
task = asyncio.create_task(_run())
return RunStream(task, queue)