(session: MCPSession)
| 572 | } |
| 573 | |
| 574 | private dropClient(session: MCPSession): void { |
| 575 | if (!this.clients.delete(session)) return; |
| 576 | this.clientPeers.delete(session); |
| 577 | if (this.clients.size === 0) this.armIdleTimer(); |
| 578 | } |
| 579 | |
| 580 | private armIdleTimer(): void { |
| 581 | if (this.idleTimer || this.stopping) return; |
no test coverage detected