(session: MCPSession)
| 559 | } |
| 560 | |
| 561 | private dropClient(session: MCPSession): void { |
| 562 | if (!this.clients.delete(session)) return; |
| 563 | this.clientPeers.delete(session); |
| 564 | if (this.clients.size === 0) this.armIdleTimer(); |
| 565 | } |
| 566 | |
| 567 | private armIdleTimer(): void { |
| 568 | if (this.idleTimer || this.stopping) return; |
no test coverage detected