mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-19 23:04:53 +09:00
poll: add missing godoc (#2763)
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
Tests / test (push) Has been cancelled
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
Tests / test (push) Has been cancelled
This commit is contained in:
@@ -100,6 +100,8 @@ func (m *mapSession) beforeServeLongPoll() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// afterServeLongPoll is called when a long-polling session ends and the node
|
||||||
|
// is disconnected.
|
||||||
func (m *mapSession) afterServeLongPoll() {
|
func (m *mapSession) afterServeLongPoll() {
|
||||||
if m.node.IsEphemeral() {
|
if m.node.IsEphemeral() {
|
||||||
m.h.ephemeralGC.Schedule(m.node.ID, m.h.cfg.EphemeralNodeInactivityTimeout)
|
m.h.ephemeralGC.Schedule(m.node.ID, m.h.cfg.EphemeralNodeInactivityTimeout)
|
||||||
|
|||||||
Reference in New Issue
Block a user