()
| 658 | } |
| 659 | |
| 660 | private async closeResources(): Promise<void> { |
| 661 | if (this.resourcesClosed) return; |
| 662 | this.resourcesClosed = true; |
| 663 | await this.mcp.close(); |
| 664 | this.httpAgent.destroy(); |
| 665 | this.httpsAgent.destroy(); |
| 666 | } |
| 667 | |
| 668 | private async initOnce(): Promise<void> { |
| 669 | if (this.resourcesClosed) { |