Commit 226a26d
committed
Fix InProcessSupervisorComms not awaiting deferred SetXCom response
When SetXCom is offloaded to the thread pool, _handle_request() returns
immediately without calling send_msg(). The InProcessSupervisorComms.send()
then calls _get_response() on an empty deque, causing IndexError.
Wait for any pending futures and drain them before popping the response.
Signed-off-by: Haneul Yeom <nyeom@nyeom.dev>1 parent 3566a8a commit 226a26d
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1611 | 1611 | | |
1612 | 1612 | | |
1613 | 1613 | | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
1614 | 1624 | | |
1615 | 1625 | | |
1616 | 1626 | | |
| |||
0 commit comments