mirror of
https://github.com/penpot/penpot.git
synced 2026-08-06 21:08:34 +00:00
The ping interval was stored in a single variable shared across all WebSocket connections, so each new connection overwrote the previous handle and leaked the prior interval. Move the interval onto ClientConnection as a per-connection field, and centralize teardown in a new removeConnection(ws) method used by the close, error and duplicate token rejection paths. Resolves #9430