mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-11 04:00:38 +00:00
A binding called from a worker thread records that thread's loop for its reply. If the thread finished and closed its loop before the host reply arrived, _pump_replies' call_soon_threadsafe onto the closed loop raises RuntimeError; unguarded, that ends the pump task and strands every later reply. Wrap the schedule in a try/except that drops the moot reply (nothing awaits it) and keeps the pump serving.