Repository navigation
Commit 9342575
committed
[None][fix] repair KeyboardInterrupt drain loop in iteration logging
The handler read 'message' which is unbound when the interrupt lands
before the first recv_json(), raising UnboundLocalError. It also compared
the decoded JSON object against b'None', a sentinel the sender never
emits (LlmManager sends {'end': True}), so the drain loop could never
terminate normally. Initialize the variable, guard the socket, and drain
until the actual 'end' sentinel.
Signed-off-by: lonexreb <reach2shubhankar@gmail.com>1 parent d9c8974 commit 9342575
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
162 | 163 | | |
163 | | - | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
0 commit comments