mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-18 15:34:06 +01:00
When stale-send cleanup prunes a connection from the batcher, the old serveLongPoll session needs an explicit stop signal. Pass a stop hook into AddNode and trigger it when that connection is removed, so the session exits through its normal cancel path instead of relying on channel closure from the batcher side.