(session: MCPSession)
| 469 | } |
| 470 | |
| 471 | private dropClient(session: MCPSession): void { |
| 472 | if (!this.clients.delete(session)) return; |
| 473 | this.clientPeers.delete(session); |
| 474 | if (this.clients.size === 0) this.armIdleTimer(); |
| 475 | } |
| 476 | |
| 477 | private armIdleTimer(): void { |
| 478 | if (this.idleTimer || this.stopping) return; |
no test coverage detected