Commit 00ed0a1
fix: add safe destroy check for proxy agents in terminate method
Proxy agents like tunnel-agent and hpagent may not implement the standard
destroy() method, causing TypeError when the interceptor attempts cleanup.
Added proper type checking before calling agent.destroy() to prevent crashes
with CONNECT tunneling requests.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 158eb2c commit 00ed0a1
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
614 | 616 | | |
615 | 617 | | |
0 commit comments