(session: MCPSession)
| 384 | } |
| 385 | |
| 386 | private dropClient(session: MCPSession): void { |
| 387 | if (!this.clients.delete(session)) return; |
| 388 | this.clientPeers.delete(session); |
| 389 | if (this.clients.size === 0) this.armIdleTimer(); |
| 390 | } |
| 391 | |
| 392 | private armIdleTimer(): void { |
| 393 | if (this.idleTimer || this.stopping) return; |
no test coverage detected