Commit e5927d2
committed
Avoid infinite recursion when exiting a service connected to LS
Finalize had a logging call between the termination of the socket and
the marking of the client as disconnected; therefore the logging
module attempted to send the log to LS, but this incurred in an error
as the socket was close. The new error was then logged again, causing
the infinte recursion.
With the logging call after the client has been marked as
disconnected, execute_rpc for the log call returns early without
errors.1 parent 3d48dff commit e5927d2
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
0 commit comments