mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-09 13:39:39 -05:00
app: fix sigint hanging
When the node notifier was replaced with batcher, we removed its closing, but forgot to add the batchers so it was never stopping node connections and waiting forever. Fixes #2751 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
committed by
Kristoffer Dalby
parent
01c1f6f82a
commit
d41fb4d540
@@ -186,8 +186,8 @@ func (m *mapSession) serveLongPoll() {
|
||||
}()
|
||||
|
||||
// Set up the client stream
|
||||
m.h.pollNetMapStreamWG.Add(1)
|
||||
defer m.h.pollNetMapStreamWG.Done()
|
||||
m.h.clientStreamsOpen.Add(1)
|
||||
defer m.h.clientStreamsOpen.Done()
|
||||
|
||||
ctx, cancel := context.WithCancel(context.WithValue(m.ctx, nodeNameContextKey, m.node.Hostname))
|
||||
defer cancel()
|
||||
|
||||
Reference in New Issue
Block a user